diff --git a/docs/06_custom_tags.md b/docs/06_custom_tags.md index 3e90e2c0..c198784c 100644 --- a/docs/06_custom_tags.md +++ b/docs/06_custom_tags.md @@ -128,8 +128,6 @@ Finally, `stringify(item, ctx, ...): string` defines how your data should be rep ```js import { findPair, // (items, key) => Pair? -- Given a key, find a matching Pair - parseMap, // (doc, cstNode) => new YAMLMap - parseSeq, // (doc, cstNode) => new YAMLSeq stringifyNumber, // (node) => string stringifyString, // (node, ctx, ...) => string toJS, // (value, arg, ctx) => any -- Recursively convert to plain JS diff --git a/src/util.js b/src/util.js index 4cc92844..71aab825 100644 --- a/src/util.js +++ b/src/util.js @@ -1,6 +1,4 @@ export { findPair, toJS } from './ast/index.js' -export { resolveMap as parseMap } from './resolve/resolveMap.js' -export { resolveSeq as parseSeq } from './resolve/resolveSeq.js' export { stringifyNumber } from './stringify/stringifyNumber.js' export { stringifyString } from './stringify/stringifyString.js' diff --git a/util.d.ts b/util.d.ts index 5364c26f..dace24ec 100644 --- a/util.d.ts +++ b/util.d.ts @@ -1,14 +1,8 @@ -import { Document } from './index' import { CST } from './parse-cst' -import { AST, Pair, Scalar, Schema } from './types' +import { Pair, Scalar, Schema } from './types' export function findPair(items: any[], key: Scalar | any): Pair | undefined -export function parseMap(doc: Document, cst: CST.Map): AST.BlockMap -export function parseMap(doc: Document, cst: CST.FlowMap): AST.FlowMap -export function parseSeq(doc: Document, cst: CST.Seq): AST.BlockSeq -export function parseSeq(doc: Document, cst: CST.FlowSeq): AST.FlowSeq - export function stringifyNumber(item: Scalar): string export function stringifyString( item: Scalar, diff --git a/util.js b/util.js index 06dd2c99..d9472bcb 100644 --- a/util.js +++ b/util.js @@ -2,8 +2,6 @@ const util = require('./dist/util') exports.findPair = util.findPair exports.toJSON = util.toJSON -exports.parseMap = util.parseMap -exports.parseSeq = util.parseSeq exports.stringifyNumber = util.stringifyNumber exports.stringifyString = util.stringifyString diff --git a/util.mjs b/util.mjs index 89e654ab..9df8eaa7 100644 --- a/util.mjs +++ b/util.mjs @@ -3,9 +3,6 @@ import util from './dist/util.js' export const findPair = util.findPair export const toJSON = util.toJSON -export const parseMap = util.parseMap -export const parseSeq = util.parseSeq - export const stringifyNumber = util.stringifyNumber export const stringifyString = util.stringifyString