2017-05-06 07:39:20 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
exports[`as.js 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
2017-05-06 07:39:20 +03:00
|
|
|
const name = (description as DescriptionObject).name || (description as string);
|
2017-05-23 23:14:22 +03:00
|
|
|
this.isTabActionBar((e.target || e.srcElement) as HTMLElement);
|
2017-05-24 04:18:34 +03:00
|
|
|
(originalError ? wrappedError(errMsg, originalError) : Error(errMsg)) as InjectionError;
|
2017-05-24 04:36:14 +03:00
|
|
|
'current' in (props.pagination as Object)
|
|
|
|
start + (yearSelectTotal as number)
|
|
|
|
scrollTop > (visibilityHeight as number)
|
2018-01-13 08:31:51 +03:00
|
|
|
export default class Column<T> extends (RcTable.Column as React.ComponentClass<ColumnProps<T>,ColumnProps<T>,ColumnProps<T>,ColumnProps<T>>) {}
|
2018-09-10 03:18:30 +03:00
|
|
|
export const MobxTypedForm = class extends (Form as { new (): any }) {}
|
2017-11-08 00:59:15 +03:00
|
|
|
export abstract class MobxTypedForm extends (Form as { new (): any }) {}
|
2017-06-02 07:10:05 +03:00
|
|
|
({}) as {};
|
2017-06-03 01:10:02 +03:00
|
|
|
function*g() {
|
|
|
|
const test = (yield 'foo') as number;
|
|
|
|
}
|
|
|
|
async function g() {
|
|
|
|
const test = (await 'foo') as number;
|
|
|
|
}
|
2017-06-03 02:08:45 +03:00
|
|
|
({}) as X;
|
|
|
|
() => ({}) as X;
|
|
|
|
const state = JSON.stringify({
|
|
|
|
next: window.location.href,
|
|
|
|
nonce,
|
|
|
|
} as State);
|
2017-07-20 16:16:15 +03:00
|
|
|
|
|
|
|
(foo.bar as Baz) = [bar];
|
2018-03-21 17:38:10 +03:00
|
|
|
(foo.bar as any)++;
|
2017-10-18 12:03:58 +03:00
|
|
|
|
|
|
|
(bValue as boolean) ? 0 : -1;
|
|
|
|
<boolean>bValue ? 0 : -1;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
|
|
|
|
=====================================output=====================================
|
2017-05-24 04:36:14 +03:00
|
|
|
const name = (description as DescriptionObject).name || (description as string);
|
2017-05-23 23:14:22 +03:00
|
|
|
this.isTabActionBar((e.target || e.srcElement) as HTMLElement);
|
2017-05-24 04:18:34 +03:00
|
|
|
(originalError
|
|
|
|
? wrappedError(errMsg, originalError)
|
|
|
|
: Error(errMsg)) as InjectionError;
|
2017-05-24 04:36:14 +03:00
|
|
|
"current" in (props.pagination as Object);
|
|
|
|
start + (yearSelectTotal as number);
|
|
|
|
scrollTop > (visibilityHeight as number);
|
2017-05-26 02:26:56 +03:00
|
|
|
export default class Column<T> extends (RcTable.Column as React.ComponentClass<
|
2018-01-13 08:31:51 +03:00
|
|
|
ColumnProps<T>,
|
|
|
|
ColumnProps<T>,
|
|
|
|
ColumnProps<T>,
|
2017-05-26 02:26:56 +03:00
|
|
|
ColumnProps<T>
|
|
|
|
>) {}
|
2018-09-10 03:18:30 +03:00
|
|
|
export const MobxTypedForm = class extends (Form as { new (): any }) {};
|
2017-11-08 00:59:15 +03:00
|
|
|
export abstract class MobxTypedForm extends (Form as { new (): any }) {}
|
2017-06-03 02:08:45 +03:00
|
|
|
({} as {});
|
2017-06-03 01:10:02 +03:00
|
|
|
function* g() {
|
|
|
|
const test = (yield "foo") as number;
|
|
|
|
}
|
|
|
|
async function g() {
|
|
|
|
const test = (await "foo") as number;
|
|
|
|
}
|
2017-06-03 02:08:45 +03:00
|
|
|
({} as X);
|
|
|
|
() => ({} as X);
|
2017-07-10 15:37:43 +03:00
|
|
|
const state = JSON.stringify({
|
|
|
|
next: window.location.href,
|
|
|
|
nonce
|
|
|
|
} as State);
|
2017-05-06 07:39:20 +03:00
|
|
|
|
2017-07-20 16:16:15 +03:00
|
|
|
(foo.bar as Baz) = [bar];
|
2018-03-21 17:38:10 +03:00
|
|
|
(foo.bar as any)++;
|
2017-07-20 16:16:15 +03:00
|
|
|
|
2017-10-18 12:03:58 +03:00
|
|
|
(bValue as boolean) ? 0 : -1;
|
|
|
|
<boolean>bValue ? 0 : -1;
|
|
|
|
|
2018-11-25 11:21:14 +03:00
|
|
|
================================================================================
|
2017-05-06 07:39:20 +03:00
|
|
|
`;
|
2019-05-20 15:31:38 +03:00
|
|
|
|
|
|
|
exports[`export_default_as.ts 1`] = `
|
|
|
|
====================================options=====================================
|
|
|
|
parsers: ["typescript"]
|
|
|
|
printWidth: 80
|
|
|
|
| printWidth
|
|
|
|
=====================================input======================================
|
|
|
|
export default (function log() {} as typeof console.log)
|
|
|
|
|
|
|
|
=====================================output=====================================
|
|
|
|
export default (function log() {} as typeof console.log);
|
|
|
|
|
|
|
|
================================================================================
|
|
|
|
`;
|