@@ -17,11 +17,11 @@ const CLONE_PLATFORM_OBJECT_KEY = Symbol('clonePlatformObject');
1717 * Optionally, it sets the clone function for that platform object, which is a
1818 * simplification of the serializable attribute of the Web interface.
1919 */
20- export const setPlatformObject : ( < T : interface { } > (
20+ export const setPlatformObject : ( < T extends interface { } > (
2121 obj: Class< T > ,
2222 options?: { clone : T => T } ,
2323) => void ) &
24- ( < T : interface { } > (obj: T, options?: { clone : T => T } ) => void ) =
24+ ( < T extends interface { } > (obj: T, options?: { clone : T => T } ) => void ) =
2525 function setPlatformObject ( obj , options ) {
2626 if ( typeof obj === 'function' ) {
2727 // $FlowExpectedError[prop-missing]
@@ -43,15 +43,15 @@ export const setPlatformObject: (<T: interface {}>(
4343/**
4444 * Indicates if the given object is a platform object.
4545 */
46- export function isPlatformObject < T : interface { } > (obj: T): boolean {
46+ export function isPlatformObject < T extends interface { } > (obj: T): boolean {
4747 // $FlowExpectedError[invalid-in-lhs]
4848 return IS_PLATFORM_OBJECT_KEY in obj ;
4949}
5050
5151/**
5252 * Returns the clone function for the given platform object, if it was set.
5353 */
54- export function getPlatformObjectClone< T : interface { } > (
54+ export function getPlatformObjectClone< T extends interface { } > (
5555 obj: T,
5656): (T => T ) | void {
5757 // $FlowExpectedError[prop-missing]
0 commit comments