TheDonutProject icon indicating copy to clipboard operation
TheDonutProject copied to clipboard

Add Typescript Donut

Open ShadowDara opened this issue 8 months ago • 1 comments

Description

Typescript -> Just run with Nodejs

Checklist

and i added , add someones entry in json file, because someone forgot it and this would lead to an error ;)

ShadowDara avatar Apr 27 '25 16:04 ShadowDara

It works (I've tested), and type-checks! even with this tsconfig.json:

{
"compilerOptions": {
	"target": "es2024",
	"strict": true,
	"noImplicitAny": true,
	"strictNullChecks": true,
	"strictFunctionTypes": true,
	"strictBindCallApply": true,
	"strictPropertyInitialization": true,
	"strictBuiltinIteratorReturn": true,
	"noImplicitThis": true,
	"useUnknownInCatchVariables": true,
	"noUnusedLocals": true,
	"noUnusedParameters": true,
	"exactOptionalPropertyTypes": true,
	"noImplicitReturns": true,
	"noFallthroughCasesInSwitch": true,
	"noUncheckedIndexedAccess": true,
	"noImplicitOverride": true,
	"noPropertyAccessFromIndexSignature": true,
	"allowUnusedLabels": false,
	"allowUnreachableCode": false
}
}

tsc version 5.8.3

However, for some reason, const b and const z are inferred as any[] by the LSP, but noImplicitAny isn't catching that (this? microsoft/TypeScript#43798)

IMO, to make the TS alt different-enough to the JS implementation, there must be some explicit type anotations

Rudxain avatar Apr 27 '25 23:04 Rudxain