focalboard/webapp/src/blocks/dividerBlock.ts

15 lines
432 B
TypeScript
Raw Normal View History

2020-10-30 19:06:32 +01:00
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
2020-12-18 21:52:45 +01:00
import {IContentBlock, MutableContentBlock} from './contentBlock'
2020-10-30 19:06:32 +01:00
2020-12-18 21:52:45 +01:00
type DividerBlock = IContentBlock
2020-10-30 19:06:32 +01:00
2021-01-19 23:48:20 +01:00
class MutableDividerBlock extends MutableContentBlock implements DividerBlock {
2020-10-30 19:06:32 +01:00
constructor(block: any = {}) {
super(block)
this.type = 'divider'
}
}
export {DividerBlock, MutableDividerBlock}