@w0s/tsconfig 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -4
- package/tsconfig.json +1 -1
- package/__tests__/@types/types.d.ts +0 -22
- package/__tests__/invalid/compilerOptions/typeChecking/01 allowUnreachableCode.ts +0 -8
- package/__tests__/invalid/compilerOptions/typeChecking/02 allowUnusedLabels.ts +0 -6
- package/__tests__/invalid/compilerOptions/typeChecking/04 exactOptionalPropertyTypes.ts +0 -4
- package/__tests__/invalid/compilerOptions/typeChecking/05 noFallthroughCasesInSwitch.ts +0 -10
- package/__tests__/invalid/compilerOptions/typeChecking/06 noImplicitAny.ts +0 -7
- package/__tests__/invalid/compilerOptions/typeChecking/07 noImplicitOverride.ts +0 -11
- package/__tests__/invalid/compilerOptions/typeChecking/08 noImplicitReturns.ts +0 -7
- package/__tests__/invalid/compilerOptions/typeChecking/09 noImplicitThis.ts +0 -15
- package/__tests__/invalid/compilerOptions/typeChecking/10 noPropertyAccessFromIndexSignature.ts +0 -9
- package/__tests__/invalid/compilerOptions/typeChecking/11 noUncheckedIndexedAccess.ts +0 -11
- package/__tests__/invalid/compilerOptions/typeChecking/12 noUnusedLocals.ts +0 -5
- package/__tests__/invalid/compilerOptions/typeChecking/13 noUnusedParameters.ts +0 -5
- package/__tests__/tsconfig-invalid.json +0 -11
- package/__tests__/tsconfig-valid.json +0 -11
- package/__tests__/valid/compilerOptions/typeChecking/01 allowUnreachableCode.ts +0 -7
- package/__tests__/valid/compilerOptions/typeChecking/02 allowUnusedLabels.ts +0 -7
- package/__tests__/valid/compilerOptions/typeChecking/04 exactOptionalPropertyTypes.ts +0 -4
- package/__tests__/valid/compilerOptions/typeChecking/05 noFallthroughCasesInSwitch.ts +0 -11
- package/__tests__/valid/compilerOptions/typeChecking/06 noImplicitAny.ts +0 -7
- package/__tests__/valid/compilerOptions/typeChecking/07 noImplicitOverride.ts +0 -11
- package/__tests__/valid/compilerOptions/typeChecking/08 noImplicitReturns.ts +0 -8
- package/__tests__/valid/compilerOptions/typeChecking/09 noImplicitThis.ts +0 -15
- package/__tests__/valid/compilerOptions/typeChecking/10 noPropertyAccessFromIndexSignature.ts +0 -7
- package/__tests__/valid/compilerOptions/typeChecking/11 noUncheckedIndexedAccess.ts +0 -8
- package/__tests__/valid/compilerOptions/typeChecking/12 noUnusedLocals.ts +0 -3
- package/__tests__/valid/compilerOptions/typeChecking/13 noUnusedParameters.ts +0 -5
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# tsconfig
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@w0s/tsconfig)
|
|
4
|
-
[](https://github.com/SaekiTominaga/w0s/actions/workflows/typescript-test.yml)
|
|
5
5
|
|
|
6
6
|
[TSConfig](https://www.typescriptlang.org/tsconfig) file used on [w0s.jp](https://w0s.jp/)
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w0s/tsconfig",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "TSConfig file used on w0s.jp",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tsconfig"
|
|
7
7
|
],
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"author": "Saeki Tominaga",
|
|
10
|
-
"files": [
|
|
11
|
-
""
|
|
12
|
-
],
|
|
10
|
+
"files": [],
|
|
13
11
|
"type": "module",
|
|
14
12
|
"main": "tsconfig.json",
|
|
15
13
|
"repository": {
|
package/tsconfig.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
interface UserDefaults {
|
|
2
|
-
// The absence of a value represents 'system'
|
|
3
|
-
colorThemeOverride?: 'dark' | 'light';
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
interface GameSettings {
|
|
7
|
-
// Known up-front properties
|
|
8
|
-
speed: 'fast' | 'medium' | 'slow';
|
|
9
|
-
quality: 'high' | 'low';
|
|
10
|
-
// Assume anything unknown to the interface
|
|
11
|
-
// is a string.
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface EnvironmentVars {
|
|
16
|
-
NAME: string;
|
|
17
|
-
OS: string;
|
|
18
|
-
// Unknown properties are covered by this index signature.
|
|
19
|
-
[propName: string]: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare const env: EnvironmentVars;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class Rectangle {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
|
|
5
|
-
constructor(width: number, height: number) {
|
|
6
|
-
this.width = width;
|
|
7
|
-
this.height = height;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
getAreaFunction() {
|
|
11
|
-
return function () {
|
|
12
|
-
return this.width * this.height;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Declared as existing
|
|
3
|
-
const sysName = env.NAME;
|
|
4
|
-
const os = env.OS;
|
|
5
|
-
|
|
6
|
-
// Not declared, but because of the index
|
|
7
|
-
// signature, then it is considered a string
|
|
8
|
-
const nodeEnv = env['NODE_ENV'];
|
|
9
|
-
|
|
10
|
-
console.debug(sysName.trim(), os.trim(), nodeEnv.trim());
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class Rectangle {
|
|
2
|
-
width: number;
|
|
3
|
-
height: number;
|
|
4
|
-
|
|
5
|
-
constructor(width: number, height: number) {
|
|
6
|
-
this.width = width;
|
|
7
|
-
this.height = height;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
getAreaFunction() {
|
|
11
|
-
return () => {
|
|
12
|
-
return this.width * this.height;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|