mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: types
This commit is contained in:
parent
fac07052f8
commit
3a786d6cf5
@ -29,7 +29,7 @@
|
|||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^15.4.1",
|
"lint-staged": "^15.4.1",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"vitest": "^3.0.2"
|
"vitest": "^3.0.3"
|
||||||
},
|
},
|
||||||
"homepage": "https://seyfert.dev",
|
"homepage": "https://seyfert.dev",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
102
pnpm-lock.yaml
generated
102
pnpm-lock.yaml
generated
@ -33,8 +33,8 @@ importers:
|
|||||||
specifier: ^5.7.3
|
specifier: ^5.7.3
|
||||||
version: 5.7.3
|
version: 5.7.3
|
||||||
vitest:
|
vitest:
|
||||||
specifier: ^3.0.2
|
specifier: ^3.0.3
|
||||||
version: 3.0.2(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
version: 3.0.3(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
@ -505,11 +505,11 @@ packages:
|
|||||||
'@types/node@22.10.7':
|
'@types/node@22.10.7':
|
||||||
resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==}
|
resolution: {integrity: sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg==}
|
||||||
|
|
||||||
'@vitest/expect@3.0.2':
|
'@vitest/expect@3.0.3':
|
||||||
resolution: {integrity: sha512-dKSHLBcoZI+3pmP5hiZ7I5grNru2HRtEW8Z5Zp4IXog8QYcxhlox7JUPyIIFWfN53+3HW3KPLIl6nSzUGgKSuQ==}
|
resolution: {integrity: sha512-SbRCHU4qr91xguu+dH3RUdI5dC86zm8aZWydbp961aIR7G8OYNN6ZiayFuf9WAngRbFOfdrLHCGgXTj3GtoMRQ==}
|
||||||
|
|
||||||
'@vitest/mocker@3.0.2':
|
'@vitest/mocker@3.0.3':
|
||||||
resolution: {integrity: sha512-Hr09FoBf0jlwwSyzIF4Xw31OntpO3XtZjkccpcBf8FeVW3tpiyKlkeUzxS/txzHqpUCNIX157NaTySxedyZLvA==}
|
resolution: {integrity: sha512-XT2XBc4AN9UdaxJAeIlcSZ0ILi/GzmG5G8XSly4gaiqIvPV3HMTSIDZWJVX6QRJ0PX1m+W8Cy0K9ByXNb/bPIA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
msw: ^2.4.9
|
msw: ^2.4.9
|
||||||
vite: ^5.0.0 || ^6.0.0
|
vite: ^5.0.0 || ^6.0.0
|
||||||
@ -519,20 +519,20 @@ packages:
|
|||||||
vite:
|
vite:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@vitest/pretty-format@3.0.2':
|
'@vitest/pretty-format@3.0.3':
|
||||||
resolution: {integrity: sha512-yBohcBw/T/p0/JRgYD+IYcjCmuHzjC3WLAKsVE4/LwiubzZkE8N49/xIQ/KGQwDRA8PaviF8IRO8JMWMngdVVQ==}
|
resolution: {integrity: sha512-gCrM9F7STYdsDoNjGgYXKPq4SkSxwwIU5nkaQvdUxiQ0EcNlez+PdKOVIsUJvh9P9IeIFmjn4IIREWblOBpP2Q==}
|
||||||
|
|
||||||
'@vitest/runner@3.0.2':
|
'@vitest/runner@3.0.3':
|
||||||
resolution: {integrity: sha512-GHEsWoncrGxWuW8s405fVoDfSLk6RF2LCXp6XhevbtDjdDme1WV/eNmUueDfpY1IX3MJaCRelVCEXsT9cArfEg==}
|
resolution: {integrity: sha512-Rgi2kOAk5ZxWZlwPguRJFOBmWs6uvvyAAR9k3MvjRvYrG7xYvKChZcmnnpJCS98311CBDMqsW9MzzRFsj2gX3g==}
|
||||||
|
|
||||||
'@vitest/snapshot@3.0.2':
|
'@vitest/snapshot@3.0.3':
|
||||||
resolution: {integrity: sha512-h9s67yD4+g+JoYG0zPCo/cLTabpDqzqNdzMawmNPzDStTiwxwkyYM1v5lWE8gmGv3SVJ2DcxA2NpQJZJv9ym3g==}
|
resolution: {integrity: sha512-kNRcHlI4txBGztuJfPEJ68VezlPAXLRT1u5UCx219TU3kOG2DplNxhWLwDf2h6emwmTPogzLnGVwP6epDaJN6Q==}
|
||||||
|
|
||||||
'@vitest/spy@3.0.2':
|
'@vitest/spy@3.0.3':
|
||||||
resolution: {integrity: sha512-8mI2iUn+PJFMT44e3ISA1R+K6ALVs47W6eriDTfXe6lFqlflID05MB4+rIFhmDSLBj8iBsZkzBYlgSkinxLzSQ==}
|
resolution: {integrity: sha512-7/dgux8ZBbF7lEIKNnEqQlyRaER9nkAL9eTmdKJkDO3hS8p59ATGwKOCUDHcBLKr7h/oi/6hP+7djQk8049T2A==}
|
||||||
|
|
||||||
'@vitest/utils@3.0.2':
|
'@vitest/utils@3.0.3':
|
||||||
resolution: {integrity: sha512-Qu01ZYZlgHvDP02JnMBRpX43nRaZtNpIzw3C1clDXmn8eakgX6iQVGzTQ/NjkIr64WD8ioqOjkaYRVvHQI5qiw==}
|
resolution: {integrity: sha512-f+s8CvyzPtMFY1eZKkIHGhPsQgYo5qCm6O8KZoim9qm1/jT64qBgGpO5tHscNH6BzRHM+edLNOP+3vO8+8pE/A==}
|
||||||
|
|
||||||
JSONStream@1.3.5:
|
JSONStream@1.3.5:
|
||||||
resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==}
|
resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==}
|
||||||
@ -1337,13 +1337,13 @@ packages:
|
|||||||
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
|
resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==}
|
||||||
engines: {node: '>= 4.0.0'}
|
engines: {node: '>= 4.0.0'}
|
||||||
|
|
||||||
vite-node@3.0.2:
|
vite-node@3.0.3:
|
||||||
resolution: {integrity: sha512-hsEQerBAHvVAbv40m3TFQe/lTEbOp7yDpyqMJqr2Tnd+W58+DEYOt+fluQgekOePcsNBmR77lpVAnIU2Xu4SvQ==}
|
resolution: {integrity: sha512-0sQcwhwAEw/UJGojbhOrnq3HtiZ3tC7BzpAa0lx3QaTX0S3YX70iGcik25UBdB96pmdwjyY2uyKNYruxCDmiEg==}
|
||||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
vite@6.0.10:
|
vite@6.0.11:
|
||||||
resolution: {integrity: sha512-MEszunEcMo6pFsfXN1GhCFQqnE25tWRH0MA4f0Q7uanACi4y1Us+ZGpTMnITwCTnYzB2b9cpmnelTlxgTBmaBA==}
|
resolution: {integrity: sha512-4VL9mQPKoHy4+FE0NnRE/kbY51TOfaknxAjt3fJbGJxhIpBZiqVzlZDEesWWsuREXHwNdAoOFZ9MkPEVXczHwg==}
|
||||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@ -1382,15 +1382,15 @@ packages:
|
|||||||
yaml:
|
yaml:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
vitest@3.0.2:
|
vitest@3.0.3:
|
||||||
resolution: {integrity: sha512-5bzaHakQ0hmVVKLhfh/jXf6oETDBtgPo8tQCHYB+wftNgFJ+Hah67IsWc8ivx4vFL025Ow8UiuTf4W57z4izvQ==}
|
resolution: {integrity: sha512-dWdwTFUW9rcnL0LyF2F+IfvNQWB0w9DERySCk8VMG75F8k25C7LsZoh6XfCjPvcR8Nb+Lqi9JKr6vnzH7HSrpQ==}
|
||||||
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@edge-runtime/vm': '*'
|
'@edge-runtime/vm': '*'
|
||||||
'@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
|
'@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
|
||||||
'@vitest/browser': 3.0.2
|
'@vitest/browser': 3.0.3
|
||||||
'@vitest/ui': 3.0.2
|
'@vitest/ui': 3.0.3
|
||||||
happy-dom: '*'
|
happy-dom: '*'
|
||||||
jsdom: '*'
|
jsdom: '*'
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
@ -1921,43 +1921,43 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
undici-types: 6.20.0
|
undici-types: 6.20.0
|
||||||
|
|
||||||
'@vitest/expect@3.0.2':
|
'@vitest/expect@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/spy': 3.0.2
|
'@vitest/spy': 3.0.3
|
||||||
'@vitest/utils': 3.0.2
|
'@vitest/utils': 3.0.3
|
||||||
chai: 5.1.2
|
chai: 5.1.2
|
||||||
tinyrainbow: 2.0.0
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
'@vitest/mocker@3.0.2(vite@6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1))':
|
'@vitest/mocker@3.0.3(vite@6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/spy': 3.0.2
|
'@vitest/spy': 3.0.3
|
||||||
estree-walker: 3.0.3
|
estree-walker: 3.0.3
|
||||||
magic-string: 0.30.17
|
magic-string: 0.30.17
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
vite: 6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
vite: 6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
||||||
|
|
||||||
'@vitest/pretty-format@3.0.2':
|
'@vitest/pretty-format@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
tinyrainbow: 2.0.0
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
'@vitest/runner@3.0.2':
|
'@vitest/runner@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/utils': 3.0.2
|
'@vitest/utils': 3.0.3
|
||||||
pathe: 2.0.2
|
pathe: 2.0.2
|
||||||
|
|
||||||
'@vitest/snapshot@3.0.2':
|
'@vitest/snapshot@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/pretty-format': 3.0.2
|
'@vitest/pretty-format': 3.0.3
|
||||||
magic-string: 0.30.17
|
magic-string: 0.30.17
|
||||||
pathe: 2.0.2
|
pathe: 2.0.2
|
||||||
|
|
||||||
'@vitest/spy@3.0.2':
|
'@vitest/spy@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
tinyspy: 3.0.2
|
tinyspy: 3.0.2
|
||||||
|
|
||||||
'@vitest/utils@3.0.2':
|
'@vitest/utils@3.0.3':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/pretty-format': 3.0.2
|
'@vitest/pretty-format': 3.0.3
|
||||||
loupe: 3.1.2
|
loupe: 3.1.2
|
||||||
tinyrainbow: 2.0.0
|
tinyrainbow: 2.0.0
|
||||||
|
|
||||||
@ -2678,13 +2678,13 @@ snapshots:
|
|||||||
|
|
||||||
universalify@0.1.2: {}
|
universalify@0.1.2: {}
|
||||||
|
|
||||||
vite-node@3.0.2(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
vite-node@3.0.3(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
cac: 6.7.14
|
cac: 6.7.14
|
||||||
debug: 4.4.0
|
debug: 4.4.0
|
||||||
es-module-lexer: 1.6.0
|
es-module-lexer: 1.6.0
|
||||||
pathe: 2.0.2
|
pathe: 2.0.2
|
||||||
vite: 6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
vite: 6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@types/node'
|
- '@types/node'
|
||||||
- jiti
|
- jiti
|
||||||
@ -2699,7 +2699,7 @@ snapshots:
|
|||||||
- tsx
|
- tsx
|
||||||
- yaml
|
- yaml
|
||||||
|
|
||||||
vite@6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
vite@6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.24.2
|
esbuild: 0.24.2
|
||||||
postcss: 8.5.1
|
postcss: 8.5.1
|
||||||
@ -2710,15 +2710,15 @@ snapshots:
|
|||||||
jiti: 2.4.2
|
jiti: 2.4.2
|
||||||
yaml: 2.6.1
|
yaml: 2.6.1
|
||||||
|
|
||||||
vitest@3.0.2(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
vitest@3.0.3(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@vitest/expect': 3.0.2
|
'@vitest/expect': 3.0.3
|
||||||
'@vitest/mocker': 3.0.2(vite@6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1))
|
'@vitest/mocker': 3.0.3(vite@6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1))
|
||||||
'@vitest/pretty-format': 3.0.2
|
'@vitest/pretty-format': 3.0.3
|
||||||
'@vitest/runner': 3.0.2
|
'@vitest/runner': 3.0.3
|
||||||
'@vitest/snapshot': 3.0.2
|
'@vitest/snapshot': 3.0.3
|
||||||
'@vitest/spy': 3.0.2
|
'@vitest/spy': 3.0.3
|
||||||
'@vitest/utils': 3.0.2
|
'@vitest/utils': 3.0.3
|
||||||
chai: 5.1.2
|
chai: 5.1.2
|
||||||
debug: 4.4.0
|
debug: 4.4.0
|
||||||
expect-type: 1.1.0
|
expect-type: 1.1.0
|
||||||
@ -2729,8 +2729,8 @@ snapshots:
|
|||||||
tinyexec: 0.3.2
|
tinyexec: 0.3.2
|
||||||
tinypool: 1.0.2
|
tinypool: 1.0.2
|
||||||
tinyrainbow: 2.0.0
|
tinyrainbow: 2.0.0
|
||||||
vite: 6.0.10(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
vite: 6.0.11(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
||||||
vite-node: 3.0.2(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
vite-node: 3.0.3(@types/node@22.10.7)(jiti@2.4.2)(yaml@2.6.1)
|
||||||
why-is-node-running: 2.3.0
|
why-is-node-running: 2.3.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@types/node': 22.10.7
|
'@types/node': 22.10.7
|
||||||
|
@ -171,7 +171,7 @@ export enum InteractionContextType {
|
|||||||
* @unstable
|
* @unstable
|
||||||
*/
|
*/
|
||||||
export interface APIEntryPointInteractionData
|
export interface APIEntryPointInteractionData
|
||||||
extends Omit<APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint>, 'guild_id'> {}
|
extends APIBaseApplicationCommandInteractionData<ApplicationCommandType.PrimaryEntryPoint> {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data
|
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-data
|
||||||
|
@ -106,10 +106,7 @@ export enum InteractionResponseType {
|
|||||||
/**
|
/**
|
||||||
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
|
* https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-interaction-callback-data-structure
|
||||||
*/
|
*/
|
||||||
export type APIInteractionResponseCallbackData = Omit<
|
export type APIInteractionResponseCallbackData = Omit<RESTPostAPIWebhookWithTokenJSONBody, 'avatar_url' | 'username'>;
|
||||||
RESTPostAPIWebhookWithTokenJSONBody,
|
|
||||||
'avatar_url' | 'username'
|
|
||||||
> & { flags?: MessageFlags };
|
|
||||||
|
|
||||||
export interface APICommandAutocompleteInteractionResponseCallbackData {
|
export interface APICommandAutocompleteInteractionResponseCallbackData {
|
||||||
choices?: APIApplicationCommandOptionChoice[];
|
choices?: APIApplicationCommandOptionChoice[];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user