-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from mobu-of-the-world/update-tsconfig
Update tsconfig with last tsconfig/base and node20 era
- Loading branch information
Showing
6 changed files
with
67 additions
and
67 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,42 @@ | ||
export namespace Elm { | ||
namespace Main { | ||
interface App { | ||
ports: Ports; | ||
} | ||
declare module '*.elm' { | ||
export namespace Elm { | ||
namespace Main { | ||
interface App { | ||
ports: Ports; | ||
} | ||
|
||
interface Args { | ||
node: HTMLElement; | ||
flags: Flags; | ||
} | ||
interface Args { | ||
node: HTMLElement; | ||
flags: Flags; | ||
} | ||
|
||
interface Flags { | ||
persisted: unknown; | ||
gitRef: string; | ||
} | ||
interface Flags { | ||
persisted: unknown; | ||
gitRef: string; | ||
} | ||
|
||
interface Ports { | ||
setStorage: Subscribe<object>; | ||
playSound: Subscribe<string>; | ||
notify: Subscribe<string>; | ||
} | ||
interface Ports { | ||
setStorage: Subscribe<object>; | ||
playSound: Subscribe<string>; | ||
notify: Subscribe<string>; | ||
} | ||
|
||
interface Subscribe<T> { | ||
subscribe(callback: (value: T) => void): void; | ||
} | ||
interface Subscribe<T> { | ||
subscribe(callback: (value: T) => void): void; | ||
} | ||
|
||
interface Send<T> { | ||
send(value: T): void; | ||
} | ||
interface Send<T> { | ||
send(value: T): void; | ||
} | ||
|
||
interface KeyEvent { | ||
sequence: string; | ||
ctrl: boolean; | ||
meta: boolean; | ||
shift: boolean; | ||
} | ||
interface KeyEvent { | ||
sequence: string; | ||
ctrl: boolean; | ||
meta: boolean; | ||
shift: boolean; | ||
} | ||
|
||
function init(args: Args): App; | ||
function init(args: Args): App; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
{ | ||
// TODO: Use tsconfig/base after all tools support tsconfig.extends array | ||
"extends": "./tsconfig.base.json", | ||
"extends": ["@tsconfig/strictest/tsconfig", "@tsconfig/node20/tsconfig"], | ||
"compilerOptions": { | ||
"lib": ["ESNext", "DOM"], | ||
"lib": ["dom", "dom.iterable"], | ||
"noEmit": true | ||
}, | ||
"include": ["./src", "*.config*.ts"] | ||
"include": ["./src/*.ts", "*.config*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters