File tree Expand file tree Collapse file tree
tests/dummy/app/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import unionOf from './-private/types/union-of' ;
22
3+ export { default as Any } from './-private/validators/any' ;
4+
35export { default as arrayOf } from './-private/types/array-of' ;
46export { default as optional } from './-private/types/optional' ;
57export { default as oneOf } from './-private/types/one-of' ;
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ module.exports = {
6363 imports : {
6464 '@ember-decorators/argument' : [ 'argument' ] ,
6565 '@ember-decorators/argument/types' : [
66+ 'Any' ,
6667 'arrayOf' ,
6768 'optional' ,
6869 'oneOf' ,
Original file line number Diff line number Diff line change 11import Component from '@ember/component' ;
22import { argument } from '@ember-decorators/argument' ;
33import {
4+ Any ,
45 arrayOf ,
56 optional ,
67 oneOf ,
@@ -17,6 +18,9 @@ import template from '../templates/components/kitchen-sink';
1718
1819@layout ( template )
1920export default class KitchenSinkComponent extends Component {
21+ @argument ( Any )
22+ anything ;
23+
2024 @argument ( 'string' )
2125 someString ;
2226
You can’t perform that action at this time.
0 commit comments