-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
TypeScript Version: 2.4.0
Code
This is part of lib.d.ts.
getExtension(name: string): any;But, there are also several type definitions of extension returning value.
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
}
declare var WEBGL_compressed_texture_s3tc: {
prototype: WEBGL_compressed_texture_s3tc;
new(): WEBGL_compressed_texture_s3tc;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
};
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL: number;
readonly UNMASKED_VENDOR_WEBGL: number;
}
declare var WEBGL_debug_renderer_info: {
prototype: WEBGL_debug_renderer_info;
new(): WEBGL_debug_renderer_info;
readonly UNMASKED_RENDERER_WEBGL: number;
readonly UNMASKED_VENDOR_WEBGL: number;
};
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: number;
}
declare var WEBGL_depth_texture: {
prototype: WEBGL_depth_texture;
new(): WEBGL_depth_texture;
readonly UNSIGNED_INT_24_8_WEBGL: number;
};These objects are not used.
getExtension(name:"WEBGL_depth_texture"): WEBGL_depth_texture;
getExtension(name:"WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info;
getExtension(name:"WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc;
getExtension(name:string):any;This must be fixed with like the code above. There are more extensions also, these also should be defined in lib.d.ts.
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript