feat: docker compose maybe
This commit is contained in:
7
node_modules/svelte-check/LICENSE
generated
vendored
Normal file
7
node_modules/svelte-check/LICENSE
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
Copyright (c) 2020-Present [these people](https://github.com/sveltejs/language-tools/graphs/contributors)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
134
node_modules/svelte-check/README.md
generated
vendored
Normal file
134
node_modules/svelte-check/README.md
generated
vendored
Normal file
@ -0,0 +1,134 @@
|
||||
# Check your code with svelte-check
|
||||
|
||||
Provides CLI diagnostics checks for:
|
||||
|
||||
- Unused CSS
|
||||
- Svelte A11y hints
|
||||
- JavaScript/TypeScript compiler errors
|
||||
|
||||
Requires Node 16 or later.
|
||||
|
||||
### Usage:
|
||||
|
||||
#### Local / in your project
|
||||
|
||||
Installation:
|
||||
|
||||
`npm i svelte-check --save-dev`
|
||||
|
||||
Package.json:
|
||||
|
||||
```json
|
||||
{
|
||||
// ...
|
||||
"scripts": {
|
||||
"svelte-check": "svelte-check"
|
||||
// ...
|
||||
},
|
||||
// ...
|
||||
"devDependencies": {
|
||||
"svelte-check": "..."
|
||||
// ...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Usage:
|
||||
|
||||
`npm run svelte-check`
|
||||
|
||||
#### Global (not recommended)
|
||||
|
||||
Installation:
|
||||
|
||||
`npm i svelte-check svelte -g`
|
||||
|
||||
Usage:
|
||||
|
||||
1. Go to folder where to start checking
|
||||
2. `svelte-check`
|
||||
|
||||
### Args:
|
||||
|
||||
| Flag | Description |
|
||||
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `--workspace <path>` | Path to your workspace. All subdirectories except node_modules and those listed in `--ignore` are checked |
|
||||
| `--output <human\|human-verbose\|machine\|machine-verbose>` |
|
||||
| `--watch` | Will not exit after one pass but keep watching files for changes and rerun diagnostics |
|
||||
| `--preserveWatchOutput` | Do not clear the screen in watch mode |
|
||||
| `--tsconfig <path>` | Pass a path to a tsconfig or jsconfig file. The path can be relative to the workspace path or absolute. Doing this means that only files matched by the files/include/exclude pattern of the config file are diagnosed. It also means that errors from TypeScript and JavaScript files are reported. If not given, will do an upwards traversal looking for the next jsconfig/tsconfig.json |
|
||||
| `--no-tsconfig` | Use this if you only want to check the Svelte files found in the current directory and below and ignore any JS/TS files (they will not be type-checked) |
|
||||
| `--ignore <path1,path2>` | Only has an effect when used in conjunction with `--no-tsconfig`. Files/folders to ignore - relative to workspace root, comma-separated, inside quotes. Example: `--ignore "dist,build"`. When used in conjunction with `--tsconfig`, this will only have effect on the files watched, not on the files that are diagnosed, which is then determined by the `tsconfig.json` |
|
||||
| `--fail-on-warnings` | Will also exit with error code when there are warnings |
|
||||
| `--compiler-warnings <code1:error\|ignore,code2:error\|ignore>` | A list of Svelte compiler warning codes. Each entry defines whether that warning should be ignored or treated as an error. Warnings are comma-separated, between warning code and error level is a colon; all inside quotes. Example: `--compiler-warnings "css-unused-selector:ignore,unused-export-let:error"` |
|
||||
| `--diagnostic-sources <js,svelte,css>` | A list of diagnostic sources which should run diagnostics on your code. Possible values are `js` (includes TS), `svelte`, `css`. Comma-separated, inside quotes. By default all are active. Example: `--diagnostic-sources "js,svelte"` |
|
||||
| `--threshold <error\|warning>` | Filters the diagnostics to display. `error` will output only errors while `warning` will output warnings and errors. |
|
||||
|
||||
### FAQ
|
||||
|
||||
#### Why is there no option to only check specific files (for example only staged files)?
|
||||
|
||||
`svelte-check` needs to know the whole project to do valid checks. Imagine you alter a component property `export let foo` to `export let bar`, but you don't update any of the component usages. They all have errors now but you would not catch them if you only run checks on changed files.
|
||||
|
||||
### More docs, preprocessor setup and troubleshooting
|
||||
|
||||
[See here](/docs/README.md).
|
||||
|
||||
### Machine-Readable Output
|
||||
|
||||
Setting the `--output` to `machine` or `machine-verbose` will format output in a way that is easier to read
|
||||
by machines, e.g. inside CI pipelines, for code quality checks, etc.
|
||||
|
||||
Each row corresponds to a new record. Rows are made up of columns that are separated by a
|
||||
single space character. The first column of every row contains a timestamp in milliseconds
|
||||
which can be used for monitoring purposes. The second column gives us the "row type", based
|
||||
on which the number and types of subsequent columns may differ.
|
||||
|
||||
The first row is of type `START` and contains the workspace folder (wrapped in quotes).
|
||||
|
||||
###### Example:
|
||||
|
||||
```
|
||||
1590680325583 START "/home/user/language-tools/packages/language-server/test/plugins/typescript/testfiles"
|
||||
```
|
||||
|
||||
Any number of `ERROR` or `WARNING` records may follow. Their structure is identical and depends on the output argoument.
|
||||
|
||||
If the argument is `machine` it will tell us the filename, the starting line and column numbers, and the error message. The filename is relative to the workspace directory. The filename and the message are both wrapped in quotes.
|
||||
|
||||
###### Example:
|
||||
|
||||
```
|
||||
1590680326283 ERROR "codeactions.svelte" 1:16 "Cannot find module 'blubb' or its corresponding type declarations."
|
||||
1590680326778 WARNING "imported-file.svelte" 0:37 "Component has unused export property 'prop'. If it is for external reference only, please consider using `export const prop`"
|
||||
```
|
||||
|
||||
If the argument is `machine-verbose` it will tell us the filename, the starting line and column numbers, the ending line and column numbers, the error message, the code of diagnostic, the human-friendly description of the code and the human-friendly source of the diagnostic (eg. svelte/typescript). The filename is relative to the workspace directory. Each diagnostic is represented as an [ndjson](https://en.wikipedia.org/wiki/JSON_streaming#Newline-Delimited_JSON) line prefixed by the timestamp of the log.
|
||||
|
||||
###### Example:
|
||||
|
||||
```
|
||||
1590680326283 {"type":"ERROR","fn":"codeaction.svelte","start":{"line":1,"character":16},"end":{"line":1,"character":23},"message":"Cannot find module 'blubb' or its corresponding type declarations.","code":2307,"source":"js"}
|
||||
1590680326778 {"type":"WARNING","filename":"imported-file.svelte","start":{"line":0,"character":37},"end":{"line":0,"character":51},"message":"Component has unused export property 'prop'. If it is for external reference only, please consider using `export
|
||||
const prop`","code":"unused-export-let","source":"svelte"}
|
||||
```
|
||||
|
||||
The output concludes with a `COMPLETED` message that summarizes total numbers of files, errors and warnings that were encountered during the check.
|
||||
|
||||
###### Example:
|
||||
|
||||
```
|
||||
1590680326807 COMPLETED 20 FILES 21 ERRORS 1 WARNINGS 3 FILES_WITH_PROBLEMS
|
||||
```
|
||||
|
||||
If the application experiences a runtime error, this error will appear as a `FAILURE` record.
|
||||
|
||||
###### Example:
|
||||
|
||||
```
|
||||
1590680328921 FAILURE "Connection closed"
|
||||
```
|
||||
|
||||
### Credits
|
||||
|
||||
- Vue's [VTI](https://github.com/vuejs/vetur/tree/master/vti) which laid the foundation for `svelte-check`
|
2
node_modules/svelte-check/bin/svelte-check
generated
vendored
Executable file
2
node_modules/svelte-check/bin/svelte-check
generated
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require('../dist/src/index.js');
|
104496
node_modules/svelte-check/dist/src/index.js
generated
vendored
Normal file
104496
node_modules/svelte-check/dist/src/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
230
node_modules/svelte-check/dist/src/svelte-jsx-v4.d.ts
generated
vendored
Normal file
230
node_modules/svelte-check/dist/src/svelte-jsx-v4.d.ts
generated
vendored
Normal file
@ -0,0 +1,230 @@
|
||||
/// <reference lib="dom" />
|
||||
|
||||
declare namespace svelteHTML {
|
||||
|
||||
// Every namespace eligible for use needs to implement the following two functions
|
||||
/**
|
||||
* @internal do not use
|
||||
*/
|
||||
function mapElementTag<K extends keyof ElementTagNameMap>(
|
||||
tag: K
|
||||
): ElementTagNameMap[K];
|
||||
function mapElementTag<K extends keyof SVGElementTagNameMap>(
|
||||
tag: K
|
||||
): SVGElementTagNameMap[K];
|
||||
function mapElementTag(
|
||||
tag: any
|
||||
): any; // needs to be any because used in context of <svelte:element>
|
||||
|
||||
/**
|
||||
* @internal do not use
|
||||
*/
|
||||
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
|
||||
// "undefined | null" because of <svelte:element>
|
||||
element: Key | undefined | null, attrs: string extends Key ? import('svelte/elements').HTMLAttributes<any> : Elements[Key]
|
||||
): Key extends keyof ElementTagNameMap ? ElementTagNameMap[Key] : Key extends keyof SVGElementTagNameMap ? SVGElementTagNameMap[Key] : any;
|
||||
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
|
||||
// "undefined | null" because of <svelte:element>
|
||||
element: Key | undefined | null, attrsEnhancers: T, attrs: (string extends Key ? import('svelte/elements').HTMLAttributes<any> : Elements[Key]) & T
|
||||
): Key extends keyof ElementTagNameMap ? ElementTagNameMap[Key] : Key extends keyof SVGElementTagNameMap ? SVGElementTagNameMap[Key] : any;
|
||||
|
||||
// For backwards-compatibility and ease-of-use, in case someone enhanced the typings from import('svelte/elements').HTMLAttributes/SVGAttributes
|
||||
interface HTMLAttributes<T extends EventTarget = any> {}
|
||||
interface SVGAttributes<T extends EventTarget = any> {}
|
||||
|
||||
/**
|
||||
* @internal do not use
|
||||
*/
|
||||
type HTMLProps<Property extends string, Override> =
|
||||
Omit<import('svelte/elements').SvelteHTMLElements[Property], keyof Override> & Override;
|
||||
|
||||
interface IntrinsicElements {
|
||||
a: HTMLProps<'a', HTMLAttributes>;
|
||||
abbr: HTMLProps<'abbr', HTMLAttributes>;
|
||||
address: HTMLProps<'address', HTMLAttributes>;
|
||||
area: HTMLProps<'area', HTMLAttributes>;
|
||||
article: HTMLProps<'article', HTMLAttributes>;
|
||||
aside: HTMLProps<'aside', HTMLAttributes>;
|
||||
audio: HTMLProps<'audio', HTMLAttributes>;
|
||||
b: HTMLProps<'b', HTMLAttributes>;
|
||||
base: HTMLProps<'base', HTMLAttributes>;
|
||||
bdi: HTMLProps<'bdi', HTMLAttributes>;
|
||||
bdo: HTMLProps<'bdo', HTMLAttributes>;
|
||||
big: HTMLProps<'big', HTMLAttributes>;
|
||||
blockquote: HTMLProps<'blockquote', HTMLAttributes>;
|
||||
body: HTMLProps<'body', HTMLAttributes>;
|
||||
br: HTMLProps<'br', HTMLAttributes>;
|
||||
button: HTMLProps<'button', HTMLAttributes>;
|
||||
canvas: HTMLProps<'canvas', HTMLAttributes>;
|
||||
caption: HTMLProps<'caption', HTMLAttributes>;
|
||||
cite: HTMLProps<'cite', HTMLAttributes>;
|
||||
code: HTMLProps<'code', HTMLAttributes>;
|
||||
col: HTMLProps<'col', HTMLAttributes>;
|
||||
colgroup: HTMLProps<'colgroup', HTMLAttributes>;
|
||||
data: HTMLProps<'data', HTMLAttributes>;
|
||||
datalist: HTMLProps<'datalist', HTMLAttributes>;
|
||||
dd: HTMLProps<'dd', HTMLAttributes>;
|
||||
del: HTMLProps<'del', HTMLAttributes>;
|
||||
details: HTMLProps<'details', HTMLAttributes>;
|
||||
dfn: HTMLProps<'dfn', HTMLAttributes>;
|
||||
dialog: HTMLProps<'dialog', HTMLAttributes>;
|
||||
div: HTMLProps<'div', HTMLAttributes>;
|
||||
dl: HTMLProps<'dl', HTMLAttributes>;
|
||||
dt: HTMLProps<'dt', HTMLAttributes>;
|
||||
em: HTMLProps<'em', HTMLAttributes>;
|
||||
embed: HTMLProps<'embed', HTMLAttributes>;
|
||||
fieldset: HTMLProps<'fieldset', HTMLAttributes>;
|
||||
figcaption: HTMLProps<'figcaption', HTMLAttributes>;
|
||||
figure: HTMLProps<'figure', HTMLAttributes>;
|
||||
footer: HTMLProps<'footer', HTMLAttributes>;
|
||||
form: HTMLProps<'form', HTMLAttributes>;
|
||||
h1: HTMLProps<'h1', HTMLAttributes>;
|
||||
h2: HTMLProps<'h2', HTMLAttributes>;
|
||||
h3: HTMLProps<'h3', HTMLAttributes>;
|
||||
h4: HTMLProps<'h4', HTMLAttributes>;
|
||||
h5: HTMLProps<'h5', HTMLAttributes>;
|
||||
h6: HTMLProps<'h6', HTMLAttributes>;
|
||||
head: HTMLProps<'head', HTMLAttributes>;
|
||||
header: HTMLProps<'header', HTMLAttributes>;
|
||||
hgroup: HTMLProps<'hgroup', HTMLAttributes>;
|
||||
hr: HTMLProps<'hr', HTMLAttributes>;
|
||||
html: HTMLProps<'html', HTMLAttributes>;
|
||||
i: HTMLProps<'i', HTMLAttributes>;
|
||||
iframe: HTMLProps<'iframe', HTMLAttributes>;
|
||||
img: HTMLProps<'img', HTMLAttributes>;
|
||||
input: HTMLProps<'input', HTMLAttributes>;
|
||||
ins: HTMLProps<'ins', HTMLAttributes>;
|
||||
kbd: HTMLProps<'kbd', HTMLAttributes>;
|
||||
keygen: HTMLProps<'keygen', HTMLAttributes>;
|
||||
label: HTMLProps<'label', HTMLAttributes>;
|
||||
legend: HTMLProps<'legend', HTMLAttributes>;
|
||||
li: HTMLProps<'li', HTMLAttributes>;
|
||||
link: HTMLProps<'link', HTMLAttributes>;
|
||||
main: HTMLProps<'main', HTMLAttributes>;
|
||||
map: HTMLProps<'map', HTMLAttributes>;
|
||||
mark: HTMLProps<'mark', HTMLAttributes>;
|
||||
menu: HTMLProps<'menu', HTMLAttributes>;
|
||||
menuitem: HTMLProps<'menuitem', HTMLAttributes>;
|
||||
meta: HTMLProps<'meta', HTMLAttributes>;
|
||||
meter: HTMLProps<'meter', HTMLAttributes>;
|
||||
nav: HTMLProps<'nav', HTMLAttributes>;
|
||||
noscript: HTMLProps<'noscript', HTMLAttributes>;
|
||||
object: HTMLProps<'object', HTMLAttributes>;
|
||||
ol: HTMLProps<'ol', HTMLAttributes>;
|
||||
optgroup: HTMLProps<'optgroup', HTMLAttributes>;
|
||||
option: HTMLProps<'option', HTMLAttributes>;
|
||||
output: HTMLProps<'output', HTMLAttributes>;
|
||||
p: HTMLProps<'p', HTMLAttributes>;
|
||||
param: HTMLProps<'param', HTMLAttributes>;
|
||||
picture: HTMLProps<'picture', HTMLAttributes>;
|
||||
pre: HTMLProps<'pre', HTMLAttributes>;
|
||||
progress: HTMLProps<'progress', HTMLAttributes>;
|
||||
q: HTMLProps<'q', HTMLAttributes>;
|
||||
rp: HTMLProps<'rp', HTMLAttributes>;
|
||||
rt: HTMLProps<'rt', HTMLAttributes>;
|
||||
ruby: HTMLProps<'ruby', HTMLAttributes>;
|
||||
s: HTMLProps<'s', HTMLAttributes>;
|
||||
samp: HTMLProps<'samp', HTMLAttributes>;
|
||||
slot: HTMLProps<'slot', HTMLAttributes>;
|
||||
script: HTMLProps<'script', HTMLAttributes>;
|
||||
section: HTMLProps<'section', HTMLAttributes>;
|
||||
select: HTMLProps<'select', HTMLAttributes>;
|
||||
small: HTMLProps<'small', HTMLAttributes>;
|
||||
source: HTMLProps<'source', HTMLAttributes>;
|
||||
span: HTMLProps<'span', HTMLAttributes>;
|
||||
strong: HTMLProps<'strong', HTMLAttributes>;
|
||||
style: HTMLProps<'style', HTMLAttributes>;
|
||||
sub: HTMLProps<'sub', HTMLAttributes>;
|
||||
summary: HTMLProps<'summary', HTMLAttributes>;
|
||||
sup: HTMLProps<'sup', HTMLAttributes>;
|
||||
table: HTMLProps<'table', HTMLAttributes>;
|
||||
template: HTMLProps<'template', HTMLAttributes>;
|
||||
tbody: HTMLProps<'tbody', HTMLAttributes>;
|
||||
td: HTMLProps<'td', HTMLAttributes>;
|
||||
textarea: HTMLProps<'textarea', HTMLAttributes>;
|
||||
tfoot: HTMLProps<'tfoot', HTMLAttributes>;
|
||||
th: HTMLProps<'th', HTMLAttributes>;
|
||||
thead: HTMLProps<'thead', HTMLAttributes>;
|
||||
time: HTMLProps<'time', HTMLAttributes>;
|
||||
title: HTMLProps<'title', HTMLAttributes>;
|
||||
tr: HTMLProps<'tr', HTMLAttributes>;
|
||||
track: HTMLProps<'track', HTMLAttributes>;
|
||||
u: HTMLProps<'u', HTMLAttributes>;
|
||||
ul: HTMLProps<'ul', HTMLAttributes>;
|
||||
var: HTMLProps<'var', HTMLAttributes>;
|
||||
video: HTMLProps<'video', HTMLAttributes>;
|
||||
wbr: HTMLProps<'wbr', HTMLAttributes>;
|
||||
webview: HTMLProps<'webview', HTMLAttributes>;
|
||||
// SVG
|
||||
svg: HTMLProps<'svg', SVGAttributes>;
|
||||
|
||||
animate: HTMLProps<'animate', SVGAttributes>;
|
||||
animateMotion: HTMLProps<'animateMotion', SVGAttributes>;
|
||||
animateTransform: HTMLProps<'animateTransform', SVGAttributes>;
|
||||
circle: HTMLProps<'circle', SVGAttributes>;
|
||||
clipPath: HTMLProps<'clipPath', SVGAttributes>;
|
||||
defs: HTMLProps<'defs', SVGAttributes>;
|
||||
desc: HTMLProps<'desc', SVGAttributes>;
|
||||
ellipse: HTMLProps<'ellipse', SVGAttributes>;
|
||||
feBlend: HTMLProps<'feBlend', SVGAttributes>;
|
||||
feColorMatrix: HTMLProps<'feColorMatrix', SVGAttributes>;
|
||||
feComponentTransfer: HTMLProps<'feComponentTransfer', SVGAttributes>;
|
||||
feComposite: HTMLProps<'feComposite', SVGAttributes>;
|
||||
feConvolveMatrix: HTMLProps<'feConvolveMatrix', SVGAttributes>;
|
||||
feDiffuseLighting: HTMLProps<'feDiffuseLighting', SVGAttributes>;
|
||||
feDisplacementMap: HTMLProps<'feDisplacementMap', SVGAttributes>;
|
||||
feDistantLight: HTMLProps<'feDistantLight', SVGAttributes>;
|
||||
feDropShadow: HTMLProps<'feDropShadow', SVGAttributes>;
|
||||
feFlood: HTMLProps<'feFlood', SVGAttributes>;
|
||||
feFuncA: HTMLProps<'feFuncA', SVGAttributes>;
|
||||
feFuncB: HTMLProps<'feFuncB', SVGAttributes>;
|
||||
feFuncG: HTMLProps<'feFuncG', SVGAttributes>;
|
||||
feFuncR: HTMLProps<'feFuncR', SVGAttributes>;
|
||||
feGaussianBlur: HTMLProps<'feGaussianBlur', SVGAttributes>;
|
||||
feImage: HTMLProps<'feImage', SVGAttributes>;
|
||||
feMerge: HTMLProps<'feMerge', SVGAttributes>;
|
||||
feMergeNode: HTMLProps<'feMergeNode', SVGAttributes>;
|
||||
feMorphology: HTMLProps<'feMorphology', SVGAttributes>;
|
||||
feOffset: HTMLProps<'feOffset', SVGAttributes>;
|
||||
fePointLight: HTMLProps<'fePointLight', SVGAttributes>;
|
||||
feSpecularLighting: HTMLProps<'feSpecularLighting', SVGAttributes>;
|
||||
feSpotLight: HTMLProps<'feSpotLight', SVGAttributes>;
|
||||
feTile: HTMLProps<'feTile', SVGAttributes>;
|
||||
feTurbulence: HTMLProps<'feTurbulence', SVGAttributes>;
|
||||
filter: HTMLProps<'filter', SVGAttributes>;
|
||||
foreignObject: HTMLProps<'foreignObject', SVGAttributes>;
|
||||
g: HTMLProps<'g', SVGAttributes>;
|
||||
image: HTMLProps<'image', SVGAttributes>;
|
||||
line: HTMLProps<'line', SVGAttributes>;
|
||||
linearGradient: HTMLProps<'linearGradient', SVGAttributes>;
|
||||
marker: HTMLProps<'marker', SVGAttributes>;
|
||||
mask: HTMLProps<'mask', SVGAttributes>;
|
||||
metadata: HTMLProps<'metadata', SVGAttributes>;
|
||||
mpath: HTMLProps<'mpath', SVGAttributes>;
|
||||
path: HTMLProps<'path', SVGAttributes>;
|
||||
pattern: HTMLProps<'pattern', SVGAttributes>;
|
||||
polygon: HTMLProps<'polygon', SVGAttributes>;
|
||||
polyline: HTMLProps<'polyline', SVGAttributes>;
|
||||
radialGradient: HTMLProps<'radialGradient', SVGAttributes>;
|
||||
rect: HTMLProps<'rect', SVGAttributes>;
|
||||
stop: HTMLProps<'stop', SVGAttributes>;
|
||||
switch: HTMLProps<'switch', SVGAttributes>;
|
||||
symbol: HTMLProps<'symbol', SVGAttributes>;
|
||||
text: HTMLProps<'text', SVGAttributes>;
|
||||
textPath: HTMLProps<'textPath', SVGAttributes>;
|
||||
tspan: HTMLProps<'tspan', SVGAttributes>;
|
||||
use: HTMLProps<'use', SVGAttributes>;
|
||||
view: HTMLProps<'view', SVGAttributes>;
|
||||
|
||||
// Svelte specific
|
||||
'svelte:window': HTMLProps<'svelte:window', HTMLAttributes>;
|
||||
'svelte:body': HTMLProps<'svelte:body', HTMLAttributes>;
|
||||
'svelte:document': HTMLProps<'svelte:document', HTMLAttributes>;
|
||||
'svelte:fragment': { slot?: string };
|
||||
'svelte:options': { [name: string]: any };
|
||||
'svelte:head': { [name: string]: any };
|
||||
|
||||
[name: string]: { [name: string]: any };
|
||||
}
|
||||
|
||||
}
|
1490
node_modules/svelte-check/dist/src/svelte-jsx.d.ts
generated
vendored
Normal file
1490
node_modules/svelte-check/dist/src/svelte-jsx.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
32
node_modules/svelte-check/dist/src/svelte-native-jsx.d.ts
generated
vendored
Normal file
32
node_modules/svelte-check/dist/src/svelte-native-jsx.d.ts
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
declare namespace svelteNative.JSX {
|
||||
|
||||
// Every namespace eligible for use needs to implement the following two functions
|
||||
function mapElementTag(
|
||||
tag: string
|
||||
): any;
|
||||
|
||||
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
|
||||
element: Key | undefined | null, attrs: Elements[Key]
|
||||
): any;
|
||||
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
|
||||
element: Key | undefined | null, attrEnhancers: T, attrs: Elements[Key] & T
|
||||
): any;
|
||||
|
||||
|
||||
/* svelte specific */
|
||||
interface ElementClass {
|
||||
$$prop_def: any;
|
||||
}
|
||||
|
||||
interface ElementAttributesProperty {
|
||||
$$prop_def: any; // specify the property name to use
|
||||
}
|
||||
|
||||
// Add empty IntrinsicAttributes to prevent fallback to the one in the JSX namespace
|
||||
interface IntrinsicAttributes {
|
||||
}
|
||||
|
||||
interface IntrinsicElements {
|
||||
[name: string]: { [name: string]: any };
|
||||
}
|
||||
}
|
225
node_modules/svelte-check/dist/src/svelte-shims-v4.d.ts
generated
vendored
Normal file
225
node_modules/svelte-check/dist/src/svelte-shims-v4.d.ts
generated
vendored
Normal file
@ -0,0 +1,225 @@
|
||||
// Whenever a ambient declaration changes, its number should be increased
|
||||
// This way, we avoid the situation where multiple ambient versions of svelte2tsx
|
||||
// are loaded and their declarations conflict each other
|
||||
// See https://github.com/sveltejs/language-tools/issues/1059 for an example bug that stems from it
|
||||
// If you change anything in this file, think about whether or not it should be backported to svelte-shims.d.ts
|
||||
|
||||
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteComponentConstructor<T, U extends import('svelte').ComponentConstructorOptions<any>> = new (options: U) => T;
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteActionReturnType = {
|
||||
update?: (args: any) => void,
|
||||
destroy?: () => void
|
||||
} | void
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteTransitionConfig = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteTransitionReturnType = SvelteTransitionConfig | (() => SvelteTransitionConfig)
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteAnimationReturnType = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteWithOptionalProps<Props, Keys extends keyof Props> = Omit<Props, Keys> & Partial<Pick<Props, Keys>>;
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteAllProps = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends never ? never : Props[K] extends undefined ? any : Props[K]}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteSlotsAnyFallback<Slots> = {[K in keyof Slots]: {[S in keyof Slots[K]]: Slots[K][S] extends undefined ? any : Slots[K][S]}}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteRestProps = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteSlots = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) => any }
|
||||
|
||||
// Forces TypeScript to look into the type which results in a better representation of it
|
||||
// which helps for error messages and is necessary for d.ts file transformation so that
|
||||
// no ambient type references are left in the output
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type KeysMatching<Obj, V> = {[K in keyof Obj]-?: Obj[K] extends V ? K : never}[keyof Obj]
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
declare type __sveltets_2_CustomEvents<T> = {[K in KeysMatching<T, CustomEvent>]: T[K] extends CustomEvent ? T[K]['detail']: T[K]}
|
||||
|
||||
declare var process: NodeJS.Process & { browser: boolean }
|
||||
declare function __sveltets_2_ensureRightProps<Props>(props: Props): {};
|
||||
declare function __sveltets_2_instanceOf<T = any>(type: AConstructorTypeOf<T>): T;
|
||||
declare function __sveltets_2_allPropsType(): SvelteAllProps
|
||||
declare function __sveltets_2_restPropsType(): SvelteRestProps
|
||||
declare function __sveltets_2_slotsType<Slots, Key extends keyof Slots>(slots: Slots): Record<Key, boolean>;
|
||||
|
||||
// Overload of the following two functions is necessary.
|
||||
// An empty array of optionalProps makes OptionalProps type any, which means we lose the prop typing.
|
||||
// optionalProps need to be first or its type cannot be infered correctly.
|
||||
|
||||
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SveltePropsAnyFallback<Props>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, OptionalProps extends keyof Props = any>(
|
||||
optionalProps: OptionalProps[],
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
|
||||
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SveltePropsAnyFallback<Props> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, OptionalProps extends keyof Props = any>(
|
||||
optionalProps: OptionalProps[],
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
|
||||
|
||||
declare function __sveltets_2_with_any<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<Props & SvelteAllProps>, events: Events, slots: Slots }
|
||||
|
||||
declare function __sveltets_2_with_any_event<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Props, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots }
|
||||
|
||||
declare function __sveltets_2_store_get<T = any>(store: SvelteStore<T>): T
|
||||
declare function __sveltets_2_store_get<Store extends SvelteStore<any> | undefined | null>(store: Store): Store extends SvelteStore<infer T> ? T : Store;
|
||||
declare function __sveltets_2_any(dummy: any): any;
|
||||
declare function __sveltets_2_invalidate<T>(getValue: () => T): T
|
||||
|
||||
declare function __sveltets_2_mapWindowEvent<K extends keyof HTMLBodyElementEventMap>(
|
||||
event: K
|
||||
): HTMLBodyElementEventMap[K];
|
||||
declare function __sveltets_2_mapBodyEvent<K extends keyof WindowEventMap>(
|
||||
event: K
|
||||
): WindowEventMap[K];
|
||||
declare function __sveltets_2_mapElementEvent<K extends keyof HTMLElementEventMap>(
|
||||
event: K
|
||||
): HTMLElementEventMap[K];
|
||||
|
||||
declare function __sveltets_2_bubbleEventDef<Events, K extends keyof Events>(
|
||||
events: Events, eventKey: K
|
||||
): Events[K];
|
||||
declare function __sveltets_2_bubbleEventDef(
|
||||
events: any, eventKey: string
|
||||
): any;
|
||||
|
||||
declare const __sveltets_2_customEvent: CustomEvent<any>;
|
||||
declare function __sveltets_2_toEventTypings<Typings>(): {[Key in keyof Typings]: CustomEvent<Typings[Key]>};
|
||||
|
||||
declare function __sveltets_2_unionType<T1, T2>(t1: T1, t2: T2): T1 | T2;
|
||||
declare function __sveltets_2_unionType<T1, T2, T3>(t1: T1, t2: T2, t3: T3): T1 | T2 | T3;
|
||||
declare function __sveltets_2_unionType<T1, T2, T3, T4>(t1: T1, t2: T2, t3: T3, t4: T4): T1 | T2 | T3 | T4;
|
||||
declare function __sveltets_2_unionType(...types: any[]): any;
|
||||
|
||||
declare function __sveltets_2_createSvelte2TsxComponent<Props extends {}, Events extends {}, Slots extends {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): SvelteComponentConstructor<import("svelte").SvelteComponent<Props, Events, Slots>,import('svelte').ComponentConstructorOptions<Props>>;
|
||||
|
||||
declare function __sveltets_2_unwrapArr<T>(arr: ArrayLike<T>): T
|
||||
declare function __sveltets_2_unwrapPromiseLike<T>(promise: PromiseLike<T> | T): T
|
||||
|
||||
// v2
|
||||
declare function __sveltets_2_createCreateSlot<Slots = Record<string, Record<string, any>>>(): <SlotName extends keyof Slots>(slotName: SlotName, attrs: Slots[SlotName]) => Record<string, any>;
|
||||
declare function __sveltets_2_createComponentAny(props: Record<string, any>): import("svelte").SvelteComponent<any, any, any>;
|
||||
|
||||
declare function __sveltets_2_any(...dummy: any[]): any;
|
||||
declare function __sveltets_2_empty(...dummy: any[]): {};
|
||||
declare function __sveltets_2_union<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(t1:T1,t2?:T2,t3?:T3,t4?:T4,t5?:T5,t6?:T6,t7?:T7,t8?:T8,t9?:T9,t10?:T10): T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9 & T10;
|
||||
declare function __sveltets_2_nonNullable<T>(type: T): NonNullable<T>;
|
||||
|
||||
declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteAnimationReturnType = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
declare var __sveltets_2_AnimationMove: { from: DOMRect, to: DOMRect }
|
||||
declare function __sveltets_2_ensureAnimation(animationCall: __sveltets_2_SvelteAnimationReturnType): {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteActionReturnType = {
|
||||
update?: (args: any) => void,
|
||||
destroy?: () => void,
|
||||
$$_attributes?: Record<string, any>,
|
||||
} | void
|
||||
declare function __sveltets_2_ensureAction<T extends __sveltets_2_SvelteActionReturnType>(actionCall: T): T extends {$$_attributes?: any} ? T['$$_attributes'] : {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteTransitionConfig = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteTransitionReturnType = __sveltets_2_SvelteTransitionConfig | (() => __sveltets_2_SvelteTransitionConfig)
|
||||
declare function __sveltets_2_ensureTransition(transitionCall: __sveltets_2_SvelteTransitionReturnType): {};
|
||||
|
||||
// Includes undefined and null for all types as all usages also allow these
|
||||
declare function __sveltets_2_ensureType<T>(type: AConstructorTypeOf<T>, el: T | undefined | null): {};
|
||||
declare function __sveltets_2_ensureType<T1, T2>(type1: AConstructorTypeOf<T1>, type2: AConstructorTypeOf<T2>, el: T1 | T2 | undefined | null): {};
|
||||
|
||||
// The following is necessary because there are two clashing errors that can't be solved at the same time
|
||||
// when using Svelte2TsxComponent, more precisely the event typings in
|
||||
// __sveltets_2_ensureComponent<T extends new (..) => _SvelteComponent<any,||any||<-this,any>>(type: T): T;
|
||||
// If we type it as "any", we have an error when using sth like {a: CustomEvent<any>}
|
||||
// If we type it as "{}", we have an error when using sth like {[evt: string]: CustomEvent<any>}
|
||||
// If we type it as "unknown", we get all kinds of follow up errors which we want to avoid
|
||||
// Therefore introduce two more base classes just for this case.
|
||||
/**
|
||||
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT
|
||||
*/
|
||||
declare type ATypedSvelteComponent = {
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$prop_def: any;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$events_def: any;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$slot_def: any;
|
||||
|
||||
$on(event: string, handler: ((e: any) => any) | null | undefined): () => void;
|
||||
}
|
||||
/**
|
||||
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT.
|
||||
*
|
||||
* If you're looking for the type of a Svelte Component, use `SvelteComponent` and `ComponentType` instead:
|
||||
*
|
||||
* ```ts
|
||||
* import type { ComponentType, SvelteComponent } from "svelte";
|
||||
* let myComponentConstructor: ComponentType<SvelteComponent> = ..;
|
||||
* ```
|
||||
*/
|
||||
declare type ConstructorOfATypedSvelteComponent = new (args: {target: any, props?: any}) => ATypedSvelteComponent
|
||||
declare function __sveltets_2_ensureComponent<T extends ConstructorOfATypedSvelteComponent | null | undefined>(type: T): NonNullable<T>;
|
||||
|
||||
declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown> | Iterable<unknown>>(array: T): T extends ArrayLike<infer U> ? U[] : T extends Iterable<infer U> ? Iterable<U> : any[];
|
304
node_modules/svelte-check/dist/src/svelte-shims.d.ts
generated
vendored
Normal file
304
node_modules/svelte-check/dist/src/svelte-shims.d.ts
generated
vendored
Normal file
@ -0,0 +1,304 @@
|
||||
// Whenever a ambient declaration changes, its number should be increased
|
||||
// This way, we avoid the situation where multiple ambient versions of svelte2tsx
|
||||
// are loaded and their declarations conflict each other
|
||||
// See https://github.com/sveltejs/language-tools/issues/1059 for an example bug that stems from it
|
||||
// If you change anything in this file, think about whether or not it should also be added to svelte-shims-v4.d.ts
|
||||
|
||||
// -- start svelte-ls-remove --
|
||||
declare module '*.svelte' {
|
||||
type _SvelteComponent<Props=any,Events=any,Slots=any> = import("svelte").SvelteComponentTyped<Props,Events,Slots>;
|
||||
export default _SvelteComponent
|
||||
}
|
||||
// -- end svelte-ls-remove --
|
||||
|
||||
/**
|
||||
* @deprecated This will be removed soon. Use `SvelteComponentTyped` instead:
|
||||
* ```ts
|
||||
* import type { SvelteComponentTyped } from 'svelte';
|
||||
* ```
|
||||
*/
|
||||
declare class Svelte2TsxComponent<
|
||||
Props extends {} = {},
|
||||
Events extends {} = {},
|
||||
Slots extends {} = {}
|
||||
> {
|
||||
// svelte2tsx-specific
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$prop_def: Props;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$events_def: Events;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$slot_def: Slots;
|
||||
// https://svelte.dev/docs#Client-side_component_API
|
||||
constructor(options: Svelte2TsxComponentConstructorParameters<Props>);
|
||||
/**
|
||||
* Causes the callback function to be called whenever the component dispatches an event.
|
||||
* A function is returned that will remove the event listener when called.
|
||||
*/
|
||||
$on<K extends keyof Events & string>(event: K, handler: ((e: Events[K]) => any) | null | undefined): () => void;
|
||||
/**
|
||||
* Removes a component from the DOM and triggers any `onDestroy` handlers.
|
||||
*/
|
||||
$destroy(): void;
|
||||
/**
|
||||
* Programmatically sets props on an instance.
|
||||
* `component.$set({ x: 1 })` is equivalent to `x = 1` inside the component's `<script>` block.
|
||||
* Calling this method schedules an update for the next microtask — the DOM is __not__ updated synchronously.
|
||||
*/
|
||||
$set(props?: Partial<Props>): void;
|
||||
// From SvelteComponent(Dev) definition
|
||||
$$: any;
|
||||
$capture_state(): void;
|
||||
$inject_state(): void;
|
||||
}
|
||||
|
||||
/** @deprecated PRIVATE API, DO NOT USE, REMOVED SOON */
|
||||
interface Svelte2TsxComponentConstructorParameters<Props extends {}> {
|
||||
/**
|
||||
* An HTMLElement to render to. This option is required.
|
||||
*/
|
||||
target: Element | Document | ShadowRoot;
|
||||
/**
|
||||
* A child of `target` to render the component immediately before.
|
||||
*/
|
||||
anchor?: Element;
|
||||
/**
|
||||
* An object of properties to supply to the component.
|
||||
*/
|
||||
props?: Props;
|
||||
context?: Map<any, any>;
|
||||
hydrate?: boolean;
|
||||
intro?: boolean;
|
||||
$$inline?: boolean;
|
||||
}
|
||||
|
||||
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteComponentConstructor<T, U extends import('svelte').ComponentConstructorOptions<any>> = new (options: U) => T;
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteActionReturnType = {
|
||||
update?: (args: any) => void,
|
||||
destroy?: () => void
|
||||
} | void
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteTransitionConfig = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteTransitionReturnType = SvelteTransitionConfig | (() => SvelteTransitionConfig)
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteAnimationReturnType = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteWithOptionalProps<Props, Keys extends keyof Props> = Omit<Props, Keys> & Partial<Pick<Props, Keys>>;
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteAllProps = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends never ? never : Props[K] extends undefined ? any : Props[K]}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteSlotsAnyFallback<Slots> = {[K in keyof Slots]: {[S in keyof Slots[K]]: Slots[K][S] extends undefined ? any : Slots[K][S]}}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteRestProps = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteSlots = { [index: string]: any }
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) => any }
|
||||
|
||||
// Forces TypeScript to look into the type which results in a better representation of it
|
||||
// which helps for error messages and is necessary for d.ts file transformation so that
|
||||
// no ambient type references are left in the output
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type KeysMatching<Obj, V> = {[K in keyof Obj]-?: Obj[K] extends V ? K : never}[keyof Obj]
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
declare type __sveltets_2_CustomEvents<T> = {[K in KeysMatching<T, CustomEvent>]: T[K] extends CustomEvent ? T[K]['detail']: T[K]}
|
||||
|
||||
declare var process: NodeJS.Process & { browser: boolean }
|
||||
declare function __sveltets_2_ensureRightProps<Props>(props: Props): {};
|
||||
declare function __sveltets_2_instanceOf<T = any>(type: AConstructorTypeOf<T>): T;
|
||||
declare function __sveltets_2_allPropsType(): SvelteAllProps
|
||||
declare function __sveltets_2_restPropsType(): SvelteRestProps
|
||||
declare function __sveltets_2_slotsType<Slots, Key extends keyof Slots>(slots: Slots): Record<Key, boolean>;
|
||||
|
||||
// Overload of the following two functions is necessary.
|
||||
// An empty array of optionalProps makes OptionalProps type any, which means we lose the prop typing.
|
||||
// optionalProps need to be first or its type cannot be infered correctly.
|
||||
|
||||
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SveltePropsAnyFallback<Props>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, OptionalProps extends keyof Props = any>(
|
||||
optionalProps: OptionalProps[],
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
|
||||
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SveltePropsAnyFallback<Props> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, OptionalProps extends keyof Props = any>(
|
||||
optionalProps: OptionalProps[],
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>> }
|
||||
|
||||
|
||||
declare function __sveltets_2_with_any<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Expand<Props & SvelteAllProps>, events: Events, slots: Slots }
|
||||
|
||||
declare function __sveltets_2_with_any_event<Props = {}, Events = {}, Slots = {}>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): {props: Props, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots }
|
||||
|
||||
declare function __sveltets_2_store_get<T = any>(store: SvelteStore<T>): T
|
||||
declare function __sveltets_2_store_get<Store extends SvelteStore<any> | undefined | null>(store: Store): Store extends SvelteStore<infer T> ? T : Store;
|
||||
declare function __sveltets_2_any(dummy: any): any;
|
||||
// declare function __sveltets_1_empty(...dummy: any[]): {};
|
||||
// declare function __sveltets_1_componentType(): AConstructorTypeOf<import("svelte").SvelteComponentTyped<any, any, any>>
|
||||
declare function __sveltets_2_invalidate<T>(getValue: () => T): T
|
||||
|
||||
declare function __sveltets_2_mapWindowEvent<K extends keyof HTMLBodyElementEventMap>(
|
||||
event: K
|
||||
): HTMLBodyElementEventMap[K];
|
||||
declare function __sveltets_2_mapBodyEvent<K extends keyof WindowEventMap>(
|
||||
event: K
|
||||
): WindowEventMap[K];
|
||||
declare function __sveltets_2_mapElementEvent<K extends keyof HTMLElementEventMap>(
|
||||
event: K
|
||||
): HTMLElementEventMap[K];
|
||||
|
||||
declare function __sveltets_2_bubbleEventDef<Events, K extends keyof Events>(
|
||||
events: Events, eventKey: K
|
||||
): Events[K];
|
||||
declare function __sveltets_2_bubbleEventDef(
|
||||
events: any, eventKey: string
|
||||
): any;
|
||||
|
||||
declare const __sveltets_2_customEvent: CustomEvent<any>;
|
||||
declare function __sveltets_2_toEventTypings<Typings>(): {[Key in keyof Typings]: CustomEvent<Typings[Key]>};
|
||||
|
||||
declare function __sveltets_2_unionType<T1, T2>(t1: T1, t2: T2): T1 | T2;
|
||||
declare function __sveltets_2_unionType<T1, T2, T3>(t1: T1, t2: T2, t3: T3): T1 | T2 | T3;
|
||||
declare function __sveltets_2_unionType<T1, T2, T3, T4>(t1: T1, t2: T2, t3: T3, t4: T4): T1 | T2 | T3 | T4;
|
||||
declare function __sveltets_2_unionType(...types: any[]): any;
|
||||
|
||||
declare function __sveltets_2_createSvelte2TsxComponent<Props, Events, Slots>(
|
||||
render: {props: Props, events: Events, slots: Slots }
|
||||
): SvelteComponentConstructor<import("svelte").SvelteComponentTyped<Props, Events, Slots>,import('svelte').ComponentConstructorOptions<Props>>;
|
||||
|
||||
declare function __sveltets_2_unwrapArr<T>(arr: ArrayLike<T>): T
|
||||
declare function __sveltets_2_unwrapPromiseLike<T>(promise: PromiseLike<T> | T): T
|
||||
|
||||
// v2
|
||||
declare function __sveltets_2_createCreateSlot<Slots = Record<string, Record<string, any>>>(): <SlotName extends keyof Slots>(slotName: SlotName, attrs: Slots[SlotName]) => Record<string, any>;
|
||||
declare function __sveltets_2_createComponentAny(props: Record<string, any>): import("svelte").SvelteComponentTyped<any, any, any>;
|
||||
|
||||
declare function __sveltets_2_any(...dummy: any[]): any;
|
||||
declare function __sveltets_2_empty(...dummy: any[]): {};
|
||||
declare function __sveltets_2_union<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(t1:T1,t2?:T2,t3?:T3,t4?:T4,t5?:T5,t6?:T6,t7?:T7,t8?:T8,t9?:T9,t10?:T10): T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9 & T10;
|
||||
declare function __sveltets_2_nonNullable<T>(type: T): NonNullable<T>;
|
||||
|
||||
declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteAnimationReturnType = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
declare var __sveltets_2_AnimationMove: { from: DOMRect, to: DOMRect }
|
||||
declare function __sveltets_2_ensureAnimation(animationCall: __sveltets_2_SvelteAnimationReturnType): {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteActionReturnType = {
|
||||
update?: (args: any) => void,
|
||||
destroy?: () => void,
|
||||
$$_attributes?: Record<string, any>,
|
||||
} | void
|
||||
declare function __sveltets_2_ensureAction<T extends __sveltets_2_SvelteActionReturnType>(actionCall: T): T extends {$$_attributes?: any} ? T['$$_attributes'] : {};
|
||||
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteTransitionConfig = {
|
||||
delay?: number,
|
||||
duration?: number,
|
||||
easing?: (t: number) => number,
|
||||
css?: (t: number, u: number) => string,
|
||||
tick?: (t: number, u: number) => void
|
||||
}
|
||||
/** @internal PRIVATE API, DO NOT USE */
|
||||
type __sveltets_2_SvelteTransitionReturnType = __sveltets_2_SvelteTransitionConfig | (() => __sveltets_2_SvelteTransitionConfig)
|
||||
declare function __sveltets_2_ensureTransition(transitionCall: __sveltets_2_SvelteTransitionReturnType): {};
|
||||
|
||||
// Includes undefined and null for all types as all usages also allow these
|
||||
declare function __sveltets_2_ensureType<T>(type: AConstructorTypeOf<T>, el: T | undefined | null): {};
|
||||
declare function __sveltets_2_ensureType<T1, T2>(type1: AConstructorTypeOf<T1>, type2: AConstructorTypeOf<T2>, el: T1 | T2 | undefined | null): {};
|
||||
|
||||
// The following is necessary because there are two clashing errors that can't be solved at the same time
|
||||
// when using Svelte2TsxComponent, more precisely the event typings in
|
||||
// __sveltets_2_ensureComponent<T extends new (..) => _SvelteComponent<any,||any||<-this,any>>(type: T): T;
|
||||
// If we type it as "any", we have an error when using sth like {a: CustomEvent<any>}
|
||||
// If we type it as "{}", we have an error when using sth like {[evt: string]: CustomEvent<any>}
|
||||
// If we type it as "unknown", we get all kinds of follow up errors which we want to avoid
|
||||
// Therefore introduce two more base classes just for this case.
|
||||
/**
|
||||
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT
|
||||
*/
|
||||
declare type ATypedSvelteComponent = {
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$prop_def: any;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$events_def: any;
|
||||
/**
|
||||
* @internal This is for type checking capabilities only
|
||||
* and does not exist at runtime. Don't use this property.
|
||||
*/
|
||||
$$slot_def: any;
|
||||
|
||||
$on(event: string, handler: ((e: any) => any) | null | undefined): () => void;
|
||||
}
|
||||
/**
|
||||
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT.
|
||||
*
|
||||
* If you're looking for the type of a Svelte Component, use `SvelteComponentTyped` and `ComponentType` instead:
|
||||
*
|
||||
* ```ts
|
||||
* import type { ComponentType, SvelteComponentTyped } from "svelte";
|
||||
* let myComponentConstructor: ComponentType<SvelteComponentTyped> = ..;
|
||||
* ```
|
||||
*/
|
||||
declare type ConstructorOfATypedSvelteComponent = new (args: {target: any, props?: any}) => ATypedSvelteComponent
|
||||
declare function __sveltets_2_ensureComponent<T extends ConstructorOfATypedSvelteComponent | null | undefined>(type: T): NonNullable<T>;
|
||||
|
||||
declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown>>(array: T): T extends ArrayLike<infer U> ? U[] : any[];
|
59
node_modules/svelte-check/package.json
generated
vendored
Normal file
59
node_modules/svelte-check/package.json
generated
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
{
|
||||
"name": "svelte-check",
|
||||
"description": "Svelte Code Checker Terminal Interface",
|
||||
"version": "3.6.0",
|
||||
"main": "./dist/src/index.js",
|
||||
"bin": "./bin/svelte-check",
|
||||
"author": "The Svelte Community",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sveltejs/language-tools.git"
|
||||
},
|
||||
"keywords": [
|
||||
"svelte",
|
||||
"cli"
|
||||
],
|
||||
"files": [
|
||||
"bin",
|
||||
"dist"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/sveltejs/language-tools/issues"
|
||||
},
|
||||
"homepage": "https://github.com/sveltejs/language-tools#readme",
|
||||
"dependencies": {
|
||||
"@jridgewell/trace-mapping": "^0.3.17",
|
||||
"chokidar": "^3.4.1",
|
||||
"fast-glob": "^3.2.7",
|
||||
"import-fresh": "^3.2.1",
|
||||
"picocolors": "^1.0.0",
|
||||
"sade": "^1.7.4",
|
||||
"svelte-preprocess": "^5.1.0",
|
||||
"typescript": "^5.0.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"svelte": "^3.55.0 || ^4.0.0-next.0 || ^4.0.0 || ^5.0.0-next.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^24.0.0",
|
||||
"@rollup/plugin-json": "^6.0.0",
|
||||
"@rollup/plugin-node-resolve": "^15.0.0",
|
||||
"@rollup/plugin-replace": "5.0.2",
|
||||
"@rollup/plugin-typescript": "^10.0.0",
|
||||
"@types/sade": "^1.7.2",
|
||||
"builtin-modules": "^3.3.0",
|
||||
"rollup": "3.7.5",
|
||||
"rollup-plugin-cleanup": "^3.2.0",
|
||||
"rollup-plugin-copy": "^3.4.0",
|
||||
"vscode-languageserver": "8.0.2",
|
||||
"vscode-languageserver-protocol": "3.17.2",
|
||||
"vscode-languageserver-types": "3.17.2",
|
||||
"vscode-uri": "~3.0.0",
|
||||
"svelte-language-server": "0.15.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c && node ./dist/src/index.js --workspace ./test --tsconfig ./tsconfig.json",
|
||||
"test": "echo 'NOOP'"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user