change package manager to pnpm, change type definition

This commit is contained in:
2026-06-22 21:48:57 +02:00
parent b673375f30
commit d1292bf6a6
4 changed files with 3422 additions and 8805 deletions
-8804
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -10,7 +10,7 @@
"url": "https://github.com/evilbocchi/rbxts-transformer-instances.git" "url": "https://github.com/evilbocchi/rbxts-transformer-instances.git"
}, },
"scripts": { "scripts": {
"prepare": "npm run generate-declarations && npm run build", "prepack": "npm run generate-declarations && npm run build",
"build": "tsc", "build": "tsc",
"watch": "tsc -w", "watch": "tsc -w",
"test": "jest", "test": "jest",
+3420
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -112,6 +112,7 @@ function generateDeclarations(classNames) {
*/ */
type CreatableInstancesWithConstructors = { type CreatableInstancesWithConstructors = {
[K in keyof CreatableInstances]: { [K in keyof CreatableInstances]: {
new (parent?: Instance): CreatableInstances[K];
new (...args: any[]): CreatableInstances[K]; new (...args: any[]): CreatableInstances[K];
} }
} }