Namespace: Devvit
Table of contents
Namespaces
Type Aliases
- BlockComponent
- BlockComponentProps
- Context
- CustomPostComponent
- ElementChildren
- Fragment
- StringChild
- StringChildren
Functions
Type Aliases
BlockComponent
Ƭ BlockComponent<P>: (props: BlockComponentProps<P>, context: Context) => JSX.Element
Type parameters
| Name | Type |
|---|---|
P | { [key: string]: unknown; } |
Type declaration
▸ (props, context): JSX.Element
Parameters
| Name | Type |
|---|---|
props | BlockComponentProps<P> |
context | Context |
Returns
JSX.Element
BlockComponentProps
Ƭ BlockComponentProps<P>: P & { children?: JSX.Children }
Type parameters
| Name | Type |
|---|---|
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
| Name | Type |
|---|---|
context | Context |
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
| Name | Type |
|---|---|
type | keyof IntrinsicElements |
props | undefined | { [key: string]: unknown; } |
...children | Children[] |