mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
642 B
TypeScript
9 lines
642 B
TypeScript
import createContext = require("gl");
|
|
|
|
createContext(0, 0); // $ExpectType WebGLRenderingContext & StackGLExtension
|
|
createContext(0, 0, { preserveDrawingBuffer: true }); // $ExpectType WebGLRenderingContext & StackGLExtension
|
|
createContext(0, 0).getExtension("STACKGL_resize_drawingbuffer"); // $ExpectType STACKGL_resize_drawingbuffer | null
|
|
createContext(0, 0).getExtension("STACKGL_destroy_context"); // $ExpectType STACKGL_destroy_context | null
|
|
createContext(0, 0).getExtension("STACKGL_resize_drawingbuffer")!.resize(0, 0); // $ExpectType void
|
|
createContext(0, 0).getExtension("STACKGL_destroy_context")!.destroy(); // $ExpectType void
|