Skip to content

check generated types #11068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"check": "tsc && cd ./tests/types && tsc",
"check:watch": "tsc --watch",
"generate:version": "node ./scripts/generate-version.js",
"generate:types": "node ./scripts/generate-types.js",
"generate:types": "node ./scripts/generate-types.js && tsc -p tsconfig.generated.json",
"prepublishOnly": "pnpm build",
"knip": "knip"
},
Expand All @@ -116,7 +116,7 @@
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@types/aria-query": "^5.0.4",
"dts-buddy": "^0.4.6",
"dts-buddy": "^0.4.7",
"esbuild": "^0.19.11",
"knip": "^4.2.1",
"rollup": "^4.9.5",
Expand Down
4 changes: 4 additions & 0 deletions packages/svelte/tsconfig.generated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "./tsconfig.json",
"include": ["./types/index.d.ts"]
}
10 changes: 7 additions & 3 deletions packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,8 @@ declare module 'svelte/compiler' {
style?: Preprocessor;
script?: Preprocessor;
}

export { walk };
}

declare module 'svelte/easing' {
Expand Down Expand Up @@ -1965,12 +1967,12 @@ declare module 'svelte/motion' {
}

declare module 'svelte/reactivity' {
export class Date extends Date {
class ReactiveDate extends Date {

constructor(...values: any[]);
#private;
}
export class Set<T> extends Set<any> {
class ReactiveSet<T> extends Set<any> {

constructor(value?: Iterable<T> | null | undefined);

Expand All @@ -1985,7 +1987,7 @@ declare module 'svelte/reactivity' {
[Symbol.iterator](): IterableIterator<T>;
#private;
}
export class Map<K, V> extends Map<any, any> {
class ReactiveMap<K, V> extends Map<any, any> {

constructor(value?: Iterable<readonly [K, V]> | null | undefined);

Expand All @@ -2004,6 +2006,8 @@ declare module 'svelte/reactivity' {
[Symbol.iterator](): IterableIterator<[K, V]>;
#private;
}

export { ReactiveDate as Date, ReactiveSet as Set, ReactiveMap as Map };
}

declare module 'svelte/server' {
Expand Down
Loading