2014-07-13 01:04:16 +02:00
|
|
|
//// [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 [
|
2015-03-09 02:23:23 +01:00
|
|
|
{
|
|
|
|
'ry': null
|
|
|
|
}
|
2014-07-13 01:04:16 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
};
|