-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
58 lines (54 loc) · 1.23 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
export type BasicBlock = {
/**
* Block identifier.
*
* @default undefined
*/
$id?: string
/**
* Block ID of your choosing to be used in CSS customization.
*
* @default undefined
*/
blockClass?: string | string[]
/**
* `"blocks"` attribute.
*
* @default undefined
*/
_blocks?: string[]
/**
* `"title"` attribute.
*
* @default undefined
*/
_title?: string
/**
* Raw `"props"` attribute.
*
* @default undefined
*/
_props?: Record<string, any>
}
/**
* @see {@link https://github.com/EzequielRamis/atex#atex-block}
*/
export type Block<T = Record<string, any>> = BasicBlock & T
/**
* @see {@link https://github.com/EzequielRamis/atex#atex-component}
*/
export type Component<T> = (props: T, children?: string[]) => string[]
declare global {
namespace JSX {
interface IntrinsicElements {
[k: string]: Block
/**
* IO store builder is a opinionated way to use IO capabilities to quickly build store components that can be reused across ecommerce stores and interact seamlessly with its APIs and existing components.
*
* @see {@link https://github.com/vtex-apps/store}
*/
store: Block
}
type Element = string[]
}
}