Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed May 11, 2024
1 parent b72573b commit 0f0676f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Importing a TypeScript module with `importx`:

<!-- TABLE_START -->

> Generated with version `v0.1.2` at 2024-05-11T19:12:27.740Z
> Generated with version `v0.2.0` at 2024-05-11T19:23:36.035Z
| | native | tsx | jiti | bundle-require |
| ------- | --- | --- | --- | --- |
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@
"vite": "^5.2.11",
"vitest": "^1.6.0"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
Expand Down
22 changes: 22 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/dist/esm/api/index.d.mts b/dist/esm/api/index.d.mts
index 410548c286aeacaa2f2abe8f57dfd8893bf86e9c..eb82b64ea5b9ee23a478791084a4149841723ee5 100644
--- a/dist/esm/api/index.d.mts
+++ b/dist/esm/api/index.d.mts
@@ -1,9 +1,5 @@
type ScopedImport = (specifier: string, parentURL: string) => Promise<any>;

-type Options$1 = {
- namespace?: string;
- onImport?: (url: string) => void;
-};
type Unregister = () => Promise<void>;
type Register = {
(options: {
@@ -13,7 +9,6 @@ type Register = {
import: ScopedImport;
unregister: Unregister;
};
- (options?: Options$1): Unregister;
};
declare const register: Register;

11 changes: 8 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion test/run-matrix.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { fileURLToPath } from 'node:url'
import fs from 'node:fs/promises'
import process from 'node:process'
import os from 'node:os'
import { execaCommand } from 'execa'
import c from 'picocolors'
import pkg from '../package.json' with { type: 'json' }
Expand Down

0 comments on commit 0f0676f

Please sign in to comment.