Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Brord van Wierst committed Aug 11, 2023
1 parent a10ef82 commit eb84161
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bindings/nodejs/lib/types/block/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
import { plainToInstance } from 'class-transformer';
import { BlockType, BlockWrapper } from './block_wrapper';
import { BasicBlock } from './basic_block';
import { ValidationBlock } from './validation_block';

export * from './block_wrapper';
export * from './basic_block';
export * from './validation_block';

export const BlockDiscriminator = {
property: 'type',
subTypes: [{ value: BasicBlock, name: BlockType.Basic as any }],
subTypes: [{ value: ValidationBlock, name: BlockType.Validation as any }],
subTypes: [
{ value: BasicBlock, name: BlockType.Basic as any },
{ value: ValidationBlock, name: BlockType.Validation as any },
],
};

export function parseBlock(data: any): BlockWrapper {
Expand Down

0 comments on commit eb84161

Please sign in to comment.