@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
36 lines (34 loc) • 979 B
text/typescript
export interface IBlockType {
id: string,
created: Date,
updated: Date,
name: string,
slug: string,
logoUrl: string | null,
documentationUrl: string | null,
description: string | null,
codeExample: string | null,
}
export class BlockType implements IBlockType {
public readonly id: string
public readonly kind = 'blockType'
public created: Date
public updated: Date
public name: string
public slug: string
public logoUrl: string | null
public documentationUrl: string | null
public description: string | null
public codeExample: string | null
public constructor(blockType: IBlockType) {
this.id = blockType.id
this.created = blockType.created
this.updated = blockType.updated
this.name = blockType.name
this.slug = blockType.slug
this.logoUrl = blockType.logoUrl
this.documentationUrl = blockType.documentationUrl
this.description = blockType.description
this.codeExample = blockType.codeExample
}
}