Skip to content

Commit 9cbc04f

Browse files
authored
Fixed typo in language extension and add a step to test procedure to make sure this does not happen again (#1029)
1 parent 0dd7008 commit 9cbc04f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

language-extensions/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ declare type LuaTableSet<TTable extends AnyTable, TKey extends AnyNotNil, TValue
487487
* @param TKey The type of the key to use to access the table.
488488
* @param TValue The type of the value to assign to the table.
489489
*/
490-
declare type LuaTableSetMethod<TKey extends AnyNonNil, TValue> = ((key: TKey, value: TValue) => void) &
490+
declare type LuaTableSetMethod<TKey extends AnyNotNil, TValue> = ((key: TKey, value: TValue) => void) &
491491
LuaExtension<"__luaTableSetMethodBrand">;
492492

493493
/**

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
"scripts": {
2626
"build": "tsc && npm run build-lualib",
2727
"build-lualib": "node build-lualib.js",
28-
"pretest": "npm run lint && npm run build-lualib",
28+
"pretest": "npm run lint && npm run check:language-extensions && npm run build-lualib",
2929
"test": "jest",
3030
"lint": "npm run lint:eslint && npm run lint:prettier",
3131
"lint:prettier": "prettier --check . || (echo 'Run `npm run fix:prettier` to fix it.' && exit 1)",
3232
"lint:eslint": "eslint . --ext .js,.ts",
3333
"fix:prettier": "prettier --write .",
34+
"check:language-extensions": "tsc language-extensions/index.d.ts",
3435
"preversion": "npm run build && npm test",
3536
"postversion": "git push && git push --tags"
3637
},

0 commit comments

Comments
 (0)