mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-18 20:37:14 +08:00
Got bitten by nulls arising from matrix inverses. Pretty much every change in this commit came from a simple textual search for explicit appearances of "null" and "undefined" in https://github.com/toji/gl-matrix/blob/master/src/gl-matrix.js. Additional things I checked: (all of which turned up nothing) * Checked each null-returning function for others that call it. * Glanced through for other suspicious places where null/undefined might crop up implicitly. However, almost every function in the library simply mutates one of its arguments in a manner that should respect the type invariants, and returns it. Nothing stuck out to me. * Double-checked newer files in https://github.com/toji/gl-matrix/tree/master/src/gl-matrix
20 lines
400 B
JSON
20 lines
400 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"target": "es6",
|
|
"noImplicitAny": true,
|
|
"strictNullChecks": true,
|
|
"baseUrl": "../",
|
|
"typeRoots": [
|
|
"../"
|
|
],
|
|
"types": [],
|
|
"noEmit": true,
|
|
"forceConsistentCasingInFileNames": true
|
|
},
|
|
"files": [
|
|
"index.d.ts",
|
|
"gl-matrix-tests.ts"
|
|
]
|
|
}
|