chore: description

This commit is contained in:
cha0s 2020-06-20 02:02:34 -05:00
parent a992c9aa87
commit 9cf2dc45c1
2 changed files with 30 additions and 0 deletions

View 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',
}],
],
},
},
};
}

View File

@ -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: {},