Skip to content

Commit 8aaaf42

Browse files
committed
fix: Exposing input types
docs: Adding docs
1 parent 8b39fe8 commit 8aaaf42

File tree

6 files changed

+236
-15
lines changed

6 files changed

+236
-15
lines changed

package-lock.json

Lines changed: 192 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@
66
"types": "./dist/MinecraftEventDrivenForm.d.ts",
77
"private": false,
88
"devDependencies": {
9-
"typescript": "^5.8.2",
9+
"@types/node": "^22.13.10",
1010
"@typescript-eslint/eslint-plugin": "^8.26.1",
1111
"@typescript-eslint/parser": "^8.26.1",
1212
"eslint": "^9.22.0",
1313
"eslint-config-prettier": "^10.1.1",
1414
"eslint-plugin-jest": "^28.11.0",
1515
"prettier": "^3.5.3",
1616
"rollup": "^4.35.0",
17-
"rollup-plugin-ts": "^3.4.5"
17+
"rollup-plugin-ts": "^3.4.5",
18+
"typedoc": "^0.28.0",
19+
"typescript": "^5.8.2"
1820
},
1921
"scripts": {
2022
"build": "rollup -c",
23+
"docs": "typedoc",
2124
"test": "jest",
2225
"prettier": "npm run prettier:base -- --write",
2326
"prettier:check": "npm run prettier:base -- --check",
@@ -36,5 +39,8 @@
3639
"minecraft-scripting"
3740
],
3841
"author": "Josejulio Martínez",
39-
"license": "Apache-2.0"
42+
"license": "Apache-2.0",
43+
"publishConfig": {
44+
"access": "public"
45+
}
4046
}

src/Arguments.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import { FormArgumentError } from './Errors';
22
import { NormalizedTextContent, TextContent } from './Primitives';
33

4+
/**
5+
* @inline
6+
*/
47
interface ToString {
58
toString(): string;
69
}
710

11+
/**
12+
* @inline
13+
*/
814
type StringResolvableMap = {
915
[key: string]: StringResolvable;
1016
};

src/Event.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,13 @@ export class FormEvent {
8383
}
8484
}
8585

86+
/**
87+
* @inline
88+
*/
8689
type EventReceiverFunction = (event: FormEvent) => Promise<void>;
90+
/**
91+
* @inline
92+
*/
8793
type EventReceiverMap = Record<string, EventReceiverFunction>;
8894
export type EventReceiver = EventReceiverFunction | EventReceiverMap | undefined;
8995

0 commit comments

Comments
 (0)