summaryrefslogtreecommitdiff
path: root/std/encoding
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding')
-rw-r--r--std/encoding/_yaml/dumper/dumper.ts2
-rw-r--r--std/encoding/_yaml/dumper/dumper_state.ts6
-rw-r--r--std/encoding/_yaml/error.ts2
-rw-r--r--std/encoding/_yaml/loader/loader.ts2
-rw-r--r--std/encoding/_yaml/loader/loader_state.ts8
-rw-r--r--std/encoding/_yaml/parse.ts2
-rw-r--r--std/encoding/_yaml/schema.ts4
-rw-r--r--std/encoding/_yaml/state.ts2
-rw-r--r--std/encoding/_yaml/stringify.ts2
-rw-r--r--std/encoding/_yaml/type.ts2
-rw-r--r--std/encoding/_yaml/type/binary.ts2
-rw-r--r--std/encoding/_yaml/type/map.ts2
-rw-r--r--std/encoding/_yaml/type/omap.ts2
-rw-r--r--std/encoding/_yaml/type/pairs.ts2
-rw-r--r--std/encoding/_yaml/type/seq.ts2
-rw-r--r--std/encoding/_yaml/type/set.ts2
-rw-r--r--std/encoding/yaml.ts13
17 files changed, 28 insertions, 29 deletions
diff --git a/std/encoding/_yaml/dumper/dumper.ts b/std/encoding/_yaml/dumper/dumper.ts
index 1280ee757..2b23d4758 100644
--- a/std/encoding/_yaml/dumper/dumper.ts
+++ b/std/encoding/_yaml/dumper/dumper.ts
@@ -6,7 +6,7 @@
/* eslint-disable max-len */
import { YAMLError } from "../error.ts";
-import { RepresentFn, StyleVariant, Type } from "../type.ts";
+import type { RepresentFn, StyleVariant, Type } from "../type.ts";
import * as common from "../utils.ts";
import { DumperState, DumperStateOptions } from "./dumper_state.ts";
diff --git a/std/encoding/_yaml/dumper/dumper_state.ts b/std/encoding/_yaml/dumper/dumper_state.ts
index 3c1de0e0e..2124ecb98 100644
--- a/std/encoding/_yaml/dumper/dumper_state.ts
+++ b/std/encoding/_yaml/dumper/dumper_state.ts
@@ -3,10 +3,10 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { Schema, SchemaDefinition } from "../schema.ts";
+import type { Schema, SchemaDefinition } from "../schema.ts";
import { State } from "../state.ts";
-import { StyleVariant, Type } from "../type.ts";
-import { ArrayObject, Any } from "../utils.ts";
+import type { StyleVariant, Type } from "../type.ts";
+import type { ArrayObject, Any } from "../utils.ts";
const _hasOwnProperty = Object.prototype.hasOwnProperty;
diff --git a/std/encoding/_yaml/error.ts b/std/encoding/_yaml/error.ts
index 7f305ccf2..a96ab11d6 100644
--- a/std/encoding/_yaml/error.ts
+++ b/std/encoding/_yaml/error.ts
@@ -3,7 +3,7 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { Mark } from "./mark.ts";
+import type { Mark } from "./mark.ts";
export class YAMLError extends Error {
constructor(
diff --git a/std/encoding/_yaml/loader/loader.ts b/std/encoding/_yaml/loader/loader.ts
index 39954c280..4ab3e9adc 100644
--- a/std/encoding/_yaml/loader/loader.ts
+++ b/std/encoding/_yaml/loader/loader.ts
@@ -7,7 +7,7 @@
import { YAMLError } from "../error.ts";
import { Mark } from "../mark.ts";
-import { Type } from "../type.ts";
+import type { Type } from "../type.ts";
import * as common from "../utils.ts";
import { LoaderState, LoaderStateOptions, ResultType } from "./loader_state.ts";
diff --git a/std/encoding/_yaml/loader/loader_state.ts b/std/encoding/_yaml/loader/loader_state.ts
index ca50fcaf1..781a4a086 100644
--- a/std/encoding/_yaml/loader/loader_state.ts
+++ b/std/encoding/_yaml/loader/loader_state.ts
@@ -3,11 +3,11 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { YAMLError } from "../error.ts";
-import { Schema, SchemaDefinition, TypeMap } from "../schema.ts";
+import type { YAMLError } from "../error.ts";
+import type { Schema, SchemaDefinition, TypeMap } from "../schema.ts";
import { State } from "../state.ts";
-import { Type } from "../type.ts";
-import { Any, ArrayObject } from "../utils.ts";
+import type { Type } from "../type.ts";
+import type { Any, ArrayObject } from "../utils.ts";
export interface LoaderStateOptions {
legacy?: boolean;
diff --git a/std/encoding/_yaml/parse.ts b/std/encoding/_yaml/parse.ts
index 2aa0042bd..9a6f325f2 100644
--- a/std/encoding/_yaml/parse.ts
+++ b/std/encoding/_yaml/parse.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { CbFunction, load, loadAll } from "./loader/loader.ts";
-import { LoaderStateOptions } from "./loader/loader_state.ts";
+import type { LoaderStateOptions } from "./loader/loader_state.ts";
export type ParseOptions = LoaderStateOptions;
diff --git a/std/encoding/_yaml/schema.ts b/std/encoding/_yaml/schema.ts
index 579644dbb..98b49203c 100644
--- a/std/encoding/_yaml/schema.ts
+++ b/std/encoding/_yaml/schema.ts
@@ -4,8 +4,8 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { YAMLError } from "./error.ts";
-import { KindType, Type } from "./type.ts";
-import { ArrayObject, Any } from "./utils.ts";
+import type { KindType, Type } from "./type.ts";
+import type { ArrayObject, Any } from "./utils.ts";
function compileList(
schema: Schema,
diff --git a/std/encoding/_yaml/state.ts b/std/encoding/_yaml/state.ts
index 6df6dc047..67a105d39 100644
--- a/std/encoding/_yaml/state.ts
+++ b/std/encoding/_yaml/state.ts
@@ -3,7 +3,7 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { SchemaDefinition } from "./schema.ts";
+import type { SchemaDefinition } from "./schema.ts";
import { DEFAULT_SCHEMA } from "./schema/mod.ts";
export abstract class State {
diff --git a/std/encoding/_yaml/stringify.ts b/std/encoding/_yaml/stringify.ts
index f037631d9..9b3b5a80e 100644
--- a/std/encoding/_yaml/stringify.ts
+++ b/std/encoding/_yaml/stringify.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { dump } from "./dumper/dumper.ts";
-import { DumperStateOptions } from "./dumper/dumper_state.ts";
+import type { DumperStateOptions } from "./dumper/dumper_state.ts";
export type DumpOptions = DumperStateOptions;
diff --git a/std/encoding/_yaml/type.ts b/std/encoding/_yaml/type.ts
index 4a2c6bbac..18dee338c 100644
--- a/std/encoding/_yaml/type.ts
+++ b/std/encoding/_yaml/type.ts
@@ -3,7 +3,7 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { ArrayObject, Any } from "./utils.ts";
+import type { ArrayObject, Any } from "./utils.ts";
export type KindType = "sequence" | "scalar" | "mapping";
export type StyleVariant = "lowercase" | "uppercase" | "camelcase" | "decimal";
diff --git a/std/encoding/_yaml/type/binary.ts b/std/encoding/_yaml/type/binary.ts
index 1a321afe8..2433960dc 100644
--- a/std/encoding/_yaml/type/binary.ts
+++ b/std/encoding/_yaml/type/binary.ts
@@ -3,7 +3,7 @@
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
const BASE64_MAP =
diff --git a/std/encoding/_yaml/type/map.ts b/std/encoding/_yaml/type/map.ts
index dcd99abca..c0c8b04b7 100644
--- a/std/encoding/_yaml/type/map.ts
+++ b/std/encoding/_yaml/type/map.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
export const map = new Type("tag:yaml.org,2002:map", {
construct(data): Any {
diff --git a/std/encoding/_yaml/type/omap.ts b/std/encoding/_yaml/type/omap.ts
index d6d751505..785846dea 100644
--- a/std/encoding/_yaml/type/omap.ts
+++ b/std/encoding/_yaml/type/omap.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
const _hasOwnProperty = Object.prototype.hasOwnProperty;
const _toString = Object.prototype.toString;
diff --git a/std/encoding/_yaml/type/pairs.ts b/std/encoding/_yaml/type/pairs.ts
index e999748ae..5e3eac5ce 100644
--- a/std/encoding/_yaml/type/pairs.ts
+++ b/std/encoding/_yaml/type/pairs.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
const _toString = Object.prototype.toString;
diff --git a/std/encoding/_yaml/type/seq.ts b/std/encoding/_yaml/type/seq.ts
index b19565dbc..df2caaece 100644
--- a/std/encoding/_yaml/type/seq.ts
+++ b/std/encoding/_yaml/type/seq.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
export const seq = new Type("tag:yaml.org,2002:seq", {
construct(data): Any {
diff --git a/std/encoding/_yaml/type/set.ts b/std/encoding/_yaml/type/set.ts
index 0bfe1c8db..8fe04e6f0 100644
--- a/std/encoding/_yaml/type/set.ts
+++ b/std/encoding/_yaml/type/set.ts
@@ -4,7 +4,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
import { Type } from "../type.ts";
-import { Any } from "../utils.ts";
+import type { Any } from "../utils.ts";
const _hasOwnProperty = Object.prototype.hasOwnProperty;
diff --git a/std/encoding/yaml.ts b/std/encoding/yaml.ts
index 78866ed2a..19245b2fc 100644
--- a/std/encoding/yaml.ts
+++ b/std/encoding/yaml.ts
@@ -3,13 +3,12 @@
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-export { ParseOptions, parse, parseAll } from "./_yaml/parse.ts";
-export {
- DumpOptions as StringifyOptions,
- stringify,
-} from "./_yaml/stringify.ts";
-export { SchemaDefinition } from "./_yaml/schema.ts";
-export { StyleVariant } from "./_yaml/type.ts";
+export type { ParseOptions } from "./_yaml/parse.ts";
+export { parse, parseAll } from "./_yaml/parse.ts";
+export type { DumpOptions as StringifyOptions } from "./_yaml/stringify.ts";
+export { stringify } from "./_yaml/stringify.ts";
+export type { SchemaDefinition } from "./_yaml/schema.ts";
+export type { StyleVariant } from "./_yaml/type.ts";
export {
CORE_SCHEMA,
DEFAULT_SCHEMA,