Skip to content

Commit 1e50fab

Browse files
committed
feat: export MergeKey type
1 parent d8ab5ef commit 1e50fab

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/schema/yaml-1.1/merge.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import type { ScalarTag } from '../types.ts'
1414

1515
export const MERGE_KEY: unique symbol = Symbol.for('<<')
1616

17+
export type MergeKey = typeof MERGE_KEY
18+
1719
export const merge: ScalarTag & {
1820
identify(value: unknown): boolean
1921
test: RegExp

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export { findPair } from './nodes/YAMLMap.ts'
99
export { map as mapTag } from './schema/common/map.ts'
1010
export { seq as seqTag } from './schema/common/seq.ts'
1111
export { string as stringTag } from './schema/common/string.ts'
12-
export { isMergeKey, MERGE_KEY } from './schema/yaml-1.1/merge.ts'
12+
export { isMergeKey, MERGE_KEY, type MergeKey } from './schema/yaml-1.1/merge.ts'
1313
export { foldFlowLines } from './stringify/foldFlowLines.ts'
1414
export type { FoldOptions } from './stringify/foldFlowLines.ts'
1515
export type { StringifyContext } from './stringify/stringify.ts'

0 commit comments

Comments
 (0)