mirror of
https://github.com/denoland/deno.git
synced 2025-02-02 04:38:21 -05:00
8090fb252b
Originally we planned to have a JS class for each error code. But it seems better to just have a single DenoError class with a "kind" property. One nice thing about using an enum instead of classes for errors is that switch() can be used during error handling instead of a bunch of instanceof branches.
18 lines
397 B
TypeScript
18 lines
397 B
TypeScript
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
|
// Public deno module.
|
|
/// <amd-module name="deno"/>
|
|
export {
|
|
env,
|
|
exit,
|
|
FileInfo,
|
|
makeTempDirSync,
|
|
mkdirSync,
|
|
readFileSync,
|
|
renameSync,
|
|
statSync,
|
|
lstatSync,
|
|
writeFileSync
|
|
} from "./os";
|
|
export { ErrorKind, DenoError } from "./errors";
|
|
export { libdeno } from "./libdeno";
|
|
export const argv: string[] = [];
|