Skip to content

Commit

Permalink
fix(react-schema-renderer): fix x-linkages typings (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Apr 27, 2020
1 parent d0e1d98 commit 06c1a31
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-schema-renderer/src/shared/linkage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Schema } from './schema'
const pathExpRE = /\[\s*(?:([+-])\s*(\d+)?)?\s*\]/g

const transformTargetPath = (
target: string,
target: FormPathPattern,
indexes: number[],
basePath: FormPath
) => {
Expand Down
1 change: 1 addition & 0 deletions packages/react-schema-renderer/src/shared/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export class Schema implements ISchema {
public ['x-component-props']?: ISchema['x-component-props']
public ['x-render']?: ISchema['x-render']
public ['x-effect']?: ISchema['x-effect']
public ['x-linkages']?: ISchema['x-linkages']
/** schema class self specs**/

public parent?: Schema
Expand Down
1 change: 0 additions & 1 deletion packages/react-schema-renderer/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export interface ISchema {
['x-index']?: number
['x-rules']?: ValidatePatternRules
['x-linkages']?: Array<{
name: FormPathPattern
target: FormPathPattern
type: string
[key: string]: any
Expand Down

0 comments on commit 06c1a31

Please sign in to comment.