contentBlock.ts
TLDR
This file exports types and functions related to content blocks.
Classes
None
Methods
createContentBlock
This method is a shorthand for creating content blocks by utilizing the createBlock
function from the imported block
module.
Interfaces
IContentBlockWithCords
This interface defines a content block along with its coordinates. It has two properties: block
, which is of type Block
, and cords
, which is an object containing x
, y
, and z
coordinates.
Types
ContentBlock
This type is an alias for the Block
type from the imported block
module.
Constants
None
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {Block, createBlock} from './block'
type IContentBlockWithCords = {
block: Block
cords: {x: number, y?: number, z?: number}
}
type ContentBlock = Block
const createContentBlock = createBlock
export {ContentBlock, IContentBlockWithCords, createContentBlock}