Skip to content

Commit

Permalink
翻译 Deno.symbols (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac authored Apr 15, 2020
1 parent 00a8b3b commit ce66b68
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib.deno.ns.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2805,15 +2805,14 @@ declare namespace Deno {
windowChange: () => SignalStream;
};

/** **UNSTABLE**: new API. Maybe move `Deno.EOF` here.
/** **不稳定**: API。可能会把 `Deno.EOF` 移动到这里。
*
* Special Deno related symbols. */
* Deno 相关的 `Symbol`。 */
export const symbols: {
/** Symbol to access exposed internal Deno API */
/** 用于将 Deno 内部 API 暴露出来的 Symbol */
readonly internal: unique symbol;
/** A symbol which can be used as a key for a custom method which will be
* called when `Deno.inspect()` is called, or when the object is logged to
* the console. */
/** 这个 Symbol 可以作为 key 来定义一个方法,当 `Deno.inspect()` 被调用或者调用了
* console 的日志方法时,这个自定义函数被调用。 */
readonly customInspect: unique symbol;
// TODO(ry) move EOF here?
};
Expand Down

0 comments on commit ce66b68

Please sign in to comment.