Skip to content

Commit e1f9011

Browse files
committed
ts glsl
1 parent 858430d commit e1f9011

File tree

3 files changed

+52
-38
lines changed

3 files changed

+52
-38
lines changed

classes/interfaces/glsl.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module "*.glsl" {
2+
const value: string;
3+
export default value;
4+
}
5+
6+
declare module '*.frag';
7+
declare module '*.vert';

tsconfig.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
// https://v3.nuxtjs.org/concepts/typescript
33
"extends": "./.nuxt/tsconfig.json",
4-
"exclude": ["@/assets/glsl/"]
4+
"exclude": ["@/assets/glsl/"],
5+
"compilerOptions": {
6+
"typeRoots": [
7+
"@/classes/interfaces"
8+
],
9+
"allowJs": true,
10+
"suppressImplicitAnyIndexErrors": true
11+
}
512
}

yarn.lock

+37-37
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,16 @@
505505
vue-bundle-renderer "^0.4.4"
506506

507507
"@rollup/plugin-alias@^4.0.0":
508-
version "4.0.0"
509-
resolved "https://registry.yarnpkg.com/@rollup/plugin-alias/-/plugin-alias-4.0.0.tgz#efac7a052098872030592ff3655238d56f70f1a3"
510-
integrity sha512-fGRWzM2F6wXnzAqn4Db8SdB/2Ree0u2XOQaaTy9mhqA35NmUzJXevMBUcpZywPF2MIUUAw+SKfWogKxFSPh+Qw==
508+
version "4.0.2"
509+
resolved "https://registry.yarnpkg.com/@rollup/plugin-alias/-/plugin-alias-4.0.2.tgz#fec6c6aff8dd6fce580ae6bc5345084cd702bb62"
510+
integrity sha512-1hv7dBOZZwo3SEupxn4UA2N0EDThqSSS+wI1St1TNTBtOZvUchyIClyHcnDcjjrReTPZ47Faedrhblv4n+T5UQ==
511511
dependencies:
512512
slash "^4.0.0"
513513

514514
"@rollup/plugin-commonjs@^23.0.0":
515-
version "23.0.1"
516-
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-23.0.1.tgz#b867a0ea412b7e06c4b7357fb1052872c7402061"
517-
integrity sha512-hIMCvNrYmW5G0VRmitlkKQPk9R7lTnQ138pzyWOWBmihwRKI1HNrZspwdzDGL98SQAG5T2aDRcuTeD166Kk+sw==
515+
version "23.0.2"
516+
resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-23.0.2.tgz#3a3a5b7b1b1cb29037eb4992edcaae997d7ebd92"
517+
integrity sha512-e9ThuiRf93YlVxc4qNIurvv+Hp9dnD+4PjOqQs5vAYfcZ3+AXSrcdzXnVjWxcGQOa6KGJFcRZyUI3ktWLavFjg==
518518
dependencies:
519519
"@rollup/pluginutils" "^5.0.1"
520520
commondir "^1.0.1"
@@ -524,45 +524,45 @@
524524
magic-string "^0.26.4"
525525

526526
"@rollup/plugin-inject@^5.0.1":
527-
version "5.0.1"
528-
resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-5.0.1.tgz#035ce080d6d43abd405f6cfe79822290637eebf8"
529-
integrity sha512-LaW/BS4smieaEfITX5EfRMTVyr8fFRv/fa+Vn6vOBsed6OFPmtuZ0qobwjs8gncjxsmWJe048DZJ590x8b64nw==
527+
version "5.0.2"
528+
resolved "https://registry.yarnpkg.com/@rollup/plugin-inject/-/plugin-inject-5.0.2.tgz#b26c0e6e73f39c118ffc1cf07cfbfd93459b93a6"
529+
integrity sha512-zRthPC/sZ2OaQwPh2LvFn0A+3SyMAZR1Vqsp89mWkIuGXKswT8ty1JWj1pf7xdZvft4gHZaCuhdopuiCwjclWg==
530530
dependencies:
531-
"@rollup/pluginutils" "^4.2.1"
531+
"@rollup/pluginutils" "^5.0.1"
532532
estree-walker "^2.0.2"
533533
magic-string "^0.26.4"
534534

535535
"@rollup/plugin-json@^5.0.0":
536-
version "5.0.0"
537-
resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-5.0.0.tgz#1e3e18302637760353c83a41d1f3c4e760afb20d"
538-
integrity sha512-LsWDA5wJs/ggzakVuKQhZo7HPRcQZgBa3jWIVxQSFxaRToUGNi8ZBh3+k/gQ+1eInVYJgn4WBRCUkmoDrmmGzw==
536+
version "5.0.1"
537+
resolved "https://registry.yarnpkg.com/@rollup/plugin-json/-/plugin-json-5.0.1.tgz#d5cd67cc83ede42967447dfabbe1be45a091f5b7"
538+
integrity sha512-QCwhZZLvM8nRcTHyR1vOgyTMiAnjiNj1ebD/BMRvbO1oc/z14lZH6PfxXeegee2B6mky/u9fia4fxRM4TqrUaw==
539539
dependencies:
540-
"@rollup/pluginutils" "^4.2.1"
540+
"@rollup/pluginutils" "^5.0.1"
541541

542542
"@rollup/plugin-node-resolve@^15.0.0":
543-
version "15.0.0"
544-
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.0.0.tgz#44ded58b36702de27bf36bbf19ca420bbd1d0c27"
545-
integrity sha512-iwJbzfTzlzDDQcGmkS7EkCKwe2kSkdBrjX87Fy/KrNjr6UNnLpod0t6X66e502LRe5JJCA4FFqrEscWPnZAkig==
543+
version "15.0.1"
544+
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.0.1.tgz#72be449b8e06f6367168d5b3cd5e2802e0248971"
545+
integrity sha512-ReY88T7JhJjeRVbfCyNj+NXAG3IIsVMsX9b5/9jC98dRP8/yxlZdz7mHZbHk5zHr24wZZICS5AcXsFZAXYUQEg==
546546
dependencies:
547-
"@rollup/pluginutils" "^4.2.1"
547+
"@rollup/pluginutils" "^5.0.1"
548548
"@types/resolve" "1.20.2"
549549
deepmerge "^4.2.2"
550550
is-builtin-module "^3.2.0"
551551
is-module "^1.0.0"
552552
resolve "^1.22.1"
553553

554554
"@rollup/plugin-replace@^5.0.0":
555-
version "5.0.0"
556-
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-5.0.0.tgz#5c0384f3a5dc6016c8fb6884d1c68036e6af2a6b"
557-
integrity sha512-TiPmjMuBjQM+KLWK16O5TAM/eW4yXBYyQ17FbfeNzBC1t2kzX2aXoa8AlS9XTSmg6/2TNvkER1lMEEeN4Lhavw==
555+
version "5.0.1"
556+
resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-5.0.1.tgz#49a57af3e6df111a9e75dea3f3572741f4c5c83e"
557+
integrity sha512-Z3MfsJ4CK17BfGrZgvrcp/l6WXoKb0kokULO+zt/7bmcyayokDaQ2K3eDJcRLCTAlp5FPI4/gz9MHAsosz4Rag==
558558
dependencies:
559-
"@rollup/pluginutils" "^4.2.1"
559+
"@rollup/pluginutils" "^5.0.1"
560560
magic-string "^0.26.4"
561561

562562
"@rollup/plugin-wasm@^6.0.0":
563-
version "6.0.0"
564-
resolved "https://registry.yarnpkg.com/@rollup/plugin-wasm/-/plugin-wasm-6.0.0.tgz#6d0937a6604eb3c9103cb22c7bff785e2110ec63"
565-
integrity sha512-pIwyNMMcyEoLpiWiMgKVh7YPbe/6N9ifEUvn1jfzwx7U66YuG7cVAniZK+OzPSc3kyfJ/EF9J8rsg4/drBz+NA==
563+
version "6.0.1"
564+
resolved "https://registry.yarnpkg.com/@rollup/plugin-wasm/-/plugin-wasm-6.0.1.tgz#3dc69aac67b6e8e44c17d0a6d8d86d5699031c3a"
565+
integrity sha512-a5yRknFQG/QGhb1xGkazWXgjpsv0hhWlx34irsf5adMEo55NdpzhZLg+jx49u+bzH6ekktuFg2WKA1RAF+WEDQ==
566566

567567
"@rollup/pluginutils@^4.2.1":
568568
version "4.2.1"
@@ -573,9 +573,9 @@
573573
picomatch "^2.2.2"
574574

575575
"@rollup/pluginutils@^5.0.1":
576-
version "5.0.1"
577-
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.1.tgz#63def51f5a76dadd984689d33c7f000164152a97"
578-
integrity sha512-4HaCVEXXuObvcPUaUlLt4faHYHCeQOOWNj8NKFGaRSrw3ZLD0TWeAFZicV9vXjnE2nkNuaVTfTuwAnjR+6uc9A==
576+
version "5.0.2"
577+
resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.0.2.tgz#012b8f53c71e4f6f9cb317e311df1404f56e7a33"
578+
integrity sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==
579579
dependencies:
580580
"@types/estree" "^1.0.0"
581581
estree-walker "^2.0.2"
@@ -618,9 +618,9 @@
618618
integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ==
619619

620620
"@types/node@*":
621-
version "18.11.3"
622-
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.3.tgz#78a6d7ec962b596fc2d2ec102c4dd3ef073fea6a"
623-
integrity sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A==
621+
version "18.11.4"
622+
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.4.tgz#7017a52e18dfaad32f55eebd539993014441949c"
623+
integrity sha512-BxcJpBu8D3kv/GZkx/gSMz6VnTJREBj/4lbzYOQueUOELkt8WrO6zAcSPmp9uRPEW/d+lUO8QK0W2xnS1hEU0A==
624624

625625
626626
version "1.20.2"
@@ -1116,9 +1116,9 @@ caniuse-api@^3.0.0:
11161116
lodash.uniq "^4.5.0"
11171117

11181118
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001407:
1119-
version "1.0.30001422"
1120-
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001422.tgz#f2d7c6202c49a8359e6e35add894d88ef93edba1"
1121-
integrity sha512-hSesn02u1QacQHhaxl/kNMZwqVG35Sz/8DgvmgedxSH8z9UUpcDYSPYgsj3x5dQNRcNp6BwpSfQfVzYUTm+fog==
1119+
version "1.0.30001423"
1120+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001423.tgz#57176d460aa8cd85ee1a72016b961eb9aca55d91"
1121+
integrity sha512-09iwWGOlifvE1XuHokFMP7eR38a0JnajoyL3/i87c8ZjRWRrdKo1fqjNfugfBD0UDBIOz0U+jtNhJ0EPm1VleQ==
11221122

11231123
chalk@^2.0.0:
11241124
version "2.4.2"
@@ -4020,9 +4020,9 @@ universalify@^2.0.0:
40204020
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
40214021

40224022
unplugin@^0.10.0:
4023-
version "0.10.0"
4024-
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.10.0.tgz#83a10e995df530ffedb117de71ac3823216efe01"
4025-
integrity sha512-QIoQDNxTceO8QneUMQc96qabJnPVijU9SnaWWAH60HqpkCQSFXTcDAcr8qM4Y7Nq8Q3NafyX3lG5S1g62+KD6g==
4023+
version "0.10.1"
4024+
resolved "https://registry.yarnpkg.com/unplugin/-/unplugin-0.10.1.tgz#e00dc951c1901aef4124121057102a8c290e28b3"
4025+
integrity sha512-y1hdBitiLOJvCmer0/IGrMGmHplsm2oFRGWleoAJTRQ8aMHxHOe9gLntYlh1WNLKufBuQ2sOTrHF+KWH4xE8Ag==
40264026
dependencies:
40274027
acorn "^8.8.0"
40284028
chokidar "^3.5.3"

0 commit comments

Comments
 (0)