Skip to content

Commit

Permalink
fix json-schema SchemaReaction type error (#1367)
Browse files Browse the repository at this point in the history
* fix(json-schema): fix SchemaReaction#dependencies type error

* fix(json-schema): fix SchemaReaction#state not support compile expression
  • Loading branch information
liuweiGL authored May 8, 2021
1 parent c896afc commit adae3da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/json-schema/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ export type SchemaEffectTypes =

export type SchemaReaction<Field = any> =
| {
dependencies?: string[]
dependencies?: string[] | Record<string, string>
when?: string | boolean
target?: string
effects?: SchemaEffectTypes[]
fulfill?: {
state?: Formily.Core.Types.IGeneralFieldState
state?: Stringify<Formily.Core.Types.IGeneralFieldState>
schema?: ISchema
run?: string
}
otherwise?: {
state?: Formily.Core.Types.IGeneralFieldState
state?: Stringify<Formily.Core.Types.IGeneralFieldState>
schema?: ISchema
run?: string
}
Expand Down Expand Up @@ -119,7 +119,7 @@ export interface ISchemaFieldFactoryOptions<
}

export interface ISchemaFieldUpdateRequest {
state?: Formily.Core.Types.IFieldState
state?: Stringify<Formily.Core.Types.IFieldState>
schema?: ISchema
run?: string
}
Expand Down

0 comments on commit adae3da

Please sign in to comment.