chore: description
This commit is contained in:
parent
a992c9aa87
commit
9cf2dc45c1
21
packages/behavior/context/context.hooks.js
Normal file
21
packages/behavior/context/context.hooks.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import {Context} from './context';
|
||||
|
||||
export function behaviorContextTypes() {
|
||||
return {
|
||||
context: {
|
||||
add: {
|
||||
type: 'void',
|
||||
label: 'Add $2 as $1.',
|
||||
args: [
|
||||
['key', {
|
||||
type: 'string',
|
||||
}],
|
||||
['value', {
|
||||
type: 'any',
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
@ -13,6 +13,15 @@ const decorate = compose(
|
|||
|
||||
export default class Behaved extends decorate(Trait) {
|
||||
|
||||
static behaviorContextTypes() {
|
||||
return {
|
||||
context: {
|
||||
type: 'context',
|
||||
label: 'Context',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
static defaultParams() {
|
||||
return {
|
||||
contextTypeHints: {},
|
||||
|
|
Loading…
Reference in New Issue
Block a user