Open LukeAbby opened 3 months ago
Part of #2528
Some more
fields.mjs
protected
vs internal
vs private
export {}
in every new file that doesn't have an import/export. (To make sure the files aren't automatically ambient)tsc
to generate type definitions from Foundry source. This is technically a part of diffing versions but I listed it here to make sure I won't forget./* ************** */
comments.Object<T>
-> Record<string, T>
or so on.MaybePromise
.
This effectively boils down to the many pitfalls of TypeScript. Common issues seems to be:
Record<string, unknown>
.InexactPartial
appropriately.foo?: T | undefined
in function signatures; only for object properties does the distinction betweenfoo?: T
andfoo?: T | undefined
matter.Ideally if lints could be find for these it'd ease the burden into becoming more automated.