import { setStateMetadata } from '../metadata/state' ; import { StateOptions } from '../types/state' ; export function State < T > ( options ? ) { return ( target ) => { setStateMetadata ( target , options ) ; return target ; } ; }