Skip to main content
Version: 0.11

Namespace: Devvit

Table of contents

Namespaces

Type Aliases

Functions

Type Aliases

BlockComponent

Ƭ BlockComponent<P>: (props: BlockComponentProps<P>, context: Context) => JSX.Element

Type parameters

NameType
P{ [key: string]: unknown; }

Type declaration

▸ (props, context): JSX.Element

Parameters
NameType
propsBlockComponentProps<P>
contextContext
Returns

JSX.Element


BlockComponentProps

Ƭ BlockComponentProps<P>: P & { children?: JSX.Children }

Type parameters

NameType
P{ [key: string]: unknown; }

Context

Ƭ Context: ContextAPIClients & BaseContext

The current app context of the event or render.


CustomPostComponent

Ƭ CustomPostComponent: (context: Context) => JSX.Element

Type declaration

▸ (context): JSX.Element

Parameters
NameType
contextContext
Returns

JSX.Element


ElementChildren

Ƭ ElementChildren: JSX.Element | JSX.Children | undefined


Fragment

Ƭ Fragment: JSX.Fragment


StringChild

Ƭ StringChild: Fragment | string | number


StringChildren

Ƭ StringChildren: StringChild | (StringChild | StringChild[])[] | undefined

Functions

createElement

createElement(type, props, ...children): BlockElement

Parameters

NameType
typekeyof IntrinsicElements
propsundefined | { [key: string]: unknown; }
...childrenChildren[]

Returns

BlockElement