Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
mayarajan3 committed Jun 17, 2024
1 parent 1a8bfe4 commit d70573c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extensions/src/common/types/framework/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ export type BlockMetadata<
};

export type ArgTransformer = (...args: any[]) => any[];

export type BlockOptions = {
transform?: ArgTransformer;
type?: { [key: string]: string };
name?: { [key: string]: string };
};

export type Config = {
[index: number]: ArgTransformer;
[index: number]: ArgTransformer | BlockOptions;
};

export type Block<TExt extends BaseGenericExtension, TOp extends BlockOperation> = BlockMetadata<TOp> & Operation<TExt, TOp>;
Expand Down

0 comments on commit d70573c

Please sign in to comment.