forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update runtime to use lib.deno.d.ts Add proper console declaration Upgrade prettier (There was an issue formatting lib.deno.d.ts)
- Loading branch information
Showing
10 changed files
with
83 additions
and
28 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2018 the Deno authors. All rights reserved. MIT license. | ||
|
||
// This file contains the default TypeScript libraries for the runtime | ||
|
||
/// <reference no-default-lib="true"/> | ||
|
||
/// <reference lib="esnext" /> | ||
|
||
// TODO generate `console.d.ts` and inline it in `assets.ts` and remove | ||
// declaration of `Console` | ||
// import { Console } from 'gen/console'; | ||
|
||
declare class Console { | ||
// tslint:disable-next-line:no-any | ||
log(...args: any[]): void; | ||
// tslint:disable-next-line:no-any | ||
debug(...args: any[]): void; | ||
// tslint:disable-next-line:no-any | ||
info(...args: any[]): void; | ||
// tslint:disable-next-line:no-any | ||
warn(...args: any[]): void; | ||
// tslint:disable-next-line:no-any | ||
error(...args: any[]): void; | ||
// tslint:disable-next-line:no-any | ||
assert(condition: boolean, ...args: any[]): void; | ||
} | ||
|
||
interface Window { | ||
console: Console; | ||
} | ||
|
||
// Globals in the runtime environment | ||
declare let console: Console; | ||
declare const window: Window; |
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
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
Submodule third_party
updated
from 142a1b to ba730b
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