mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 01:46:23 +00:00
Add ts-pattern as common
This commit is contained in:
parent
687c3f8f3d
commit
0f277bcfa5
3 changed files with 14 additions and 0 deletions
|
@ -70,6 +70,7 @@
|
||||||
"stylelint": "^16.8.1",
|
"stylelint": "^16.8.1",
|
||||||
"stylelint-config-standard": "^36.0.1",
|
"stylelint-config-standard": "^36.0.1",
|
||||||
"ts-patch": "^3.2.1",
|
"ts-patch": "^3.2.1",
|
||||||
|
"ts-pattern": "^5.3.1",
|
||||||
"tsx": "^4.16.5",
|
"tsx": "^4.16.5",
|
||||||
"type-fest": "^4.23.0",
|
"type-fest": "^4.23.0",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.5.4",
|
||||||
|
|
|
@ -116,6 +116,9 @@ importers:
|
||||||
ts-patch:
|
ts-patch:
|
||||||
specifier: ^3.2.1
|
specifier: ^3.2.1
|
||||||
version: 3.2.1
|
version: 3.2.1
|
||||||
|
ts-pattern:
|
||||||
|
specifier: ^5.3.1
|
||||||
|
version: 5.3.1
|
||||||
tsx:
|
tsx:
|
||||||
specifier: ^4.16.5
|
specifier: ^4.16.5
|
||||||
version: 4.16.5
|
version: 4.16.5
|
||||||
|
@ -2524,6 +2527,9 @@ packages:
|
||||||
resolution: {integrity: sha512-hlR43v+GUIUy8/ZGFP1DquEqPh7PFKQdDMTAmYt671kCCA6AkDQMoeFaFmZ7ObPLYOmpMgyKUqL1C+coFMf30w==}
|
resolution: {integrity: sha512-hlR43v+GUIUy8/ZGFP1DquEqPh7PFKQdDMTAmYt671kCCA6AkDQMoeFaFmZ7ObPLYOmpMgyKUqL1C+coFMf30w==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
|
ts-pattern@5.3.1:
|
||||||
|
resolution: {integrity: sha512-1RUMKa8jYQdNfmnK4jyzBK3/PS/tnjcZ1CW0v1vWDeYe5RBklc/nquw03MEoB66hVBm4BnlCfmOqDVxHyT1DpA==}
|
||||||
|
|
||||||
tsconfig-paths@3.15.0:
|
tsconfig-paths@3.15.0:
|
||||||
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
|
resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
|
||||||
|
|
||||||
|
@ -5158,6 +5164,8 @@ snapshots:
|
||||||
semver: 7.6.3
|
semver: 7.6.3
|
||||||
strip-ansi: 6.0.1
|
strip-ansi: 6.0.1
|
||||||
|
|
||||||
|
ts-pattern@5.3.1: {}
|
||||||
|
|
||||||
tsconfig-paths@3.15.0:
|
tsconfig-paths@3.15.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/json5': 0.0.29
|
'@types/json5': 0.0.29
|
||||||
|
|
|
@ -46,6 +46,11 @@ export const moment = findByProps<typeof import("moment")>("parseTwoDigitYear");
|
||||||
|
|
||||||
export const hljs = findByProps<typeof import("highlight.js")>("highlight", "registerLanguage");
|
export const hljs = findByProps<typeof import("highlight.js")>("highlight", "registerLanguage");
|
||||||
|
|
||||||
|
export const { match, P }: Pick<typeof import("ts-pattern"), "match" | "P"> = mapMangledModule("@ts-pattern/matcher", {
|
||||||
|
match: filters.byCode("return new"),
|
||||||
|
P: filters.byProps("when")
|
||||||
|
});
|
||||||
|
|
||||||
export const lodash = findByProps<typeof import("lodash")>("debounce", "cloneDeep");
|
export const lodash = findByProps<typeof import("lodash")>("debounce", "cloneDeep");
|
||||||
|
|
||||||
export const i18n = find<t.i18n>(m => m.Messages?.["en-US"]);
|
export const i18n = find<t.i18n>(m => m.Messages?.["en-US"]);
|
||||||
|
|
Loading…
Reference in a new issue