30 lines
569 B
JavaScript
30 lines
569 B
JavaScript
//// [contextualTypeArrayReturnType.ts]
|
|
interface IBookStyle {
|
|
initialLeftPageTransforms?: (width: number) => NamedTransform[];
|
|
}
|
|
|
|
interface NamedTransform {
|
|
[name: string]: Transform3D;
|
|
}
|
|
|
|
interface Transform3D {
|
|
cachedCss: string;
|
|
}
|
|
|
|
var style: IBookStyle = {
|
|
initialLeftPageTransforms: (width: number) => {
|
|
return [
|
|
{'ry': null }
|
|
];
|
|
}
|
|
}
|
|
|
|
|
|
//// [contextualTypeArrayReturnType.js]
|
|
var style = {
|
|
initialLeftPageTransforms: function (width) {
|
|
return [
|
|
{ 'ry': null }
|
|
];
|
|
}
|
|
};
|