Skip to content

Commit 82333d7

Browse files
committed
fix: the type definition of JSONQueryPipe
1 parent b30e614 commit 82333d7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/jsonquery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ export type {
3131
JSONQueryParseOptions,
3232
JSONQueryPrimitive,
3333
JSONQueryProperty,
34+
JSONQueryPipe,
3435
JSONQueryStringifyOptions
3536
} from './types'

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type JSONQuery = JSONQueryFunction | JSONQueryObject | JSONQueryPrimitive
66
export type JSONProperty = string
77
export type JSONPath = JSONProperty[]
88
export type JSONQueryProperty = ['get', path?: string | JSONPath]
9+
export type JSONQueryPipe = ['pipe', ...JSONQuery[]]
910

1011
export interface JSONQueryOptions {
1112
functions?: FunctionBuildersMap

0 commit comments

Comments
 (0)