feat: nested property for the where filter, #178

This commit is contained in:
harttle
2019-12-13 01:15:29 +08:00
parent 6502984b50
commit 60ec74f55d
6 changed files with 58 additions and 33 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ type FilterArg = string|KeyValuePair
export type FilterArgs = FilterArg[]
export class Filter {
private name: string
public name: string
public args: FilterArgs
private impl: FilterImplOptions
private args: FilterArgs
private static impls: {[key: string]: FilterImplOptions} = {}
public constructor (name: string, args: FilterArgs, strictFilters: boolean) {
+2 -2
View File
@@ -3,9 +3,9 @@ import { FilterArgs, Filter } from './filter/filter'
import { Context } from '../context/context'
export class Value {
public readonly filters: Filter[] = []
public readonly initial: string
private strictFilters: boolean
private initial: string
private filters: Filter[] = []
/**
* @param str value string, like: "i have a dream | truncate: 3