Skip to content

Set lualib tsconfig to strict#1401

Merged
Perryvw merged 1 commit intomasterfrom
strict-lualib
Feb 16, 2023
Merged

Set lualib tsconfig to strict#1401
Perryvw merged 1 commit intomasterfrom
strict-lualib

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented Feb 13, 2023

Enabled strict TS in lualib source so it can be fully checked and understood by TS, as well as eslint

As added bonus the extra types enabled tstl to optimize some lualib functions

"luaPlugins": [{ "name": "../../dist/lualib-build/plugin.js" }]
},
"include": ["*.ts", "5.0/*.ts", "declarations", "../../language-extensions/index.d.ts"]
"include": ["*.ts", "5.0/**/*.ts", "declarations/**/*.ts", "../../language-extensions/index.d.ts"]
Copy link
Copy Markdown
Contributor

@Zamiell Zamiell Feb 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you simplify this to "./**/*.ts"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no because I expicitly want ot include 5.0 and not universal

@Perryvw Perryvw merged commit 16cd2d5 into master Feb 16, 2023
@Perryvw Perryvw deleted the strict-lualib branch February 16, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants