Skip to content

Commit

Permalink
fix(layer): 修复类型报错
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed Sep 1, 2022
1 parent 10e2b32 commit 64a3f1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ export interface LayoutPaint {
export interface LayerProps<T extends LayerType> extends Omit<Layer, 'layout' | 'paint'> {
type: T;
before?: string;
layout?: LayoutPaint[T];
paint?: LayoutPaint[T];
layout?: LayoutPaint[T]['layout'];
paint?: LayoutPaint[T]['paint'];
}

0 comments on commit 64a3f1c

Please sign in to comment.