-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Brord van Wierst
committed
Sep 19, 2023
1 parent
d83b414
commit b398f6e
Showing
2 changed files
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
// Copyright 2023 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { plainToInstance } from 'class-transformer'; | ||
import { BasicBlock } from './basic'; | ||
import { BlockType } from './block'; | ||
import { BlockWrapper } from './wrapper'; | ||
import { BasicBlock } from './basic'; | ||
|
||
export * from './wrapper'; | ||
export * from './basic'; | ||
export * from './block'; | ||
export * from './basic'; | ||
export * from './wrapper'; | ||
|
||
// Here because in block.ts it causes a circular Dependecy | ||
export const BlockDiscriminator = { | ||
property: 'type', | ||
subTypes: [{ value: BasicBlock, name: BlockType.Basic as any }], | ||
}; | ||
|
||
export function parseBlockWrapper(data: any): BlockWrapper { | ||
return plainToInstance(BlockWrapper, data) as any as BlockWrapper; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters