-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide type declarations for consumers of the package
Explicitly export userscript metadata types instead of implicitly having ambient declarations which are visible only inside the local package.
- Loading branch information
Showing
5 changed files
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Keep the following exports in sync with index.js | ||
|
||
export * from './src/buildUserscripts.js'; | ||
|
||
export * from './src/buildBookmarklets.js'; | ||
|
||
export * from './src/build.js'; | ||
|
||
export * from './src/extractDocumentation.js'; | ||
|
||
export * from './src/github.js'; | ||
|
||
export * from './src/userscriptMetadata.js'; | ||
|
||
// Additional type exports | ||
|
||
export * from './src/types/UserscriptMetadata'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
export { buildUserscript, buildUserscripts } from './src/buildUserscripts.js'; | ||
// Keep the following exports in sync with index.d.ts | ||
|
||
export { buildBookmarklet, buildBookmarklets } from './src/buildBookmarklets.js'; | ||
export * from './src/buildUserscripts.js'; | ||
|
||
export { build } from './src/build.js'; | ||
export * from './src/buildBookmarklets.js'; | ||
|
||
export { extractDocumentation } from './src/extractDocumentation.js'; | ||
export * from './src/build.js'; | ||
|
||
export { GITHUB, sourceAndInstallButton } from './src/github.js'; | ||
export * from './src/extractDocumentation.js'; | ||
|
||
export * from './src/github.js'; | ||
|
||
export * from './src/userscriptMetadata.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters