-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
37 lines (27 loc) · 857 Bytes
/
types.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
import {IBE} from 'be-enhanced/types.js';
import { ActionOnEventConfigs } from "trans-render/froop/types";
export interface EndUserProps extends IBE<HTMLElement>{
of?: Array<OnStatement>;
Of?: Array<OnStatement>;
}
export interface AllProps extends EndUserProps{
isParsed?: boolean,
onRules: Array<OnRule>
}
export interface OnRule{
names: string[],
triggerType?: 'Event' | 'Events' | 'PropChanges'
}
export interface WithNotFullyParsedRule extends OnRule{
commaDelimitedNames: string,
}
export type OnStatement = string;
export type AP = AllProps;
export type PAP = Partial<AP>;
export type ProPAP = Promise<PAP>;
export type POA = [PAP | undefined, ActionOnEventConfigs<PAP, Actions>];
export interface Actions{
onCamelized(self: this): ProPAP;
hydrate(self: this): ProPAP;
noAttrs(self: this): ProPAP;
}