UNPKG

1.01 kBSource Map (JSON)View Raw
1{"version":3,"file":"parse.pipe.js","sourceRoot":"","sources":["parse.pipe.ts"],"names":[],"mappings":";;;;;;;;AAAA,sCAAoD;AACpD,+BAAiC;AAEjC,4FAA4F;AAC5F,IAAM,iBAAiB,GAAyC,MAAO,CAAC,OAAO,IAAI,MAAM,CAAC;AAG1F;IAAA;IAIA,CAAC;IAHC,6BAAS,GAAT,UAAU,KAAa,EAAE,MAAc;QACrC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC/B,CAAC;IAHU,SAAS;QADrB,WAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;OACb,SAAS,CAIrB;IAAD,gBAAC;CAAA,AAJD,IAIC;AAJY,8BAAS","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\r\nimport * as moment from 'moment';\r\n\r\n// under systemjs, moment is actually exported as the default export, so we account for that\r\nconst momentConstructor: (value?: any) => moment.Moment = (<any>moment).default || moment;\r\n\r\n@Pipe({ name: 'amParse' })\r\nexport class ParsePipe implements PipeTransform {\r\n transform(value: string, format: string): moment.Moment {\r\n return moment(value, format);\r\n }\r\n}\r\n\ninterface DecoratorInvocation {\n type: Function;\n args?: any[];\n}\n"]}
\No newline at end of file