# @types/gl

> TypeScript definitions for gl

Latest version **6.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/gl
pnpm add @types/gl
yarn add @types/gl
bun add @types/gl
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 6.0.5 |
| Published | 2023-11-07 |
| First published | 2018-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gl
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl
- npm.io page: https://npm.io/package/@types/gl

## Recent versions

- 6.0.5 (latest) — 2023-11-07
- 6.0.2 (ts4.1) — 2022-11-15
- 4.1.1 (ts4.0) — 2022-07-13
- 4.1.0 (ts2.0) — 2018-12-17
- 6.0.4 — 2023-10-18
- 6.0.3 — 2023-09-20
- 6.0.1 — 2022-11-11
- 6.0.0 — 2022-10-28

## README

# Installation
> `npm install --save @types/gl`

# Summary
This package contains type definitions for gl (https://github.com/stackgl/headless-gl#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl/index.d.ts)
````ts
declare namespace createContext {
    interface STACKGL_destroy_context {
        destroy(): void;
    }

    interface STACKGL_resize_drawingbuffer {
        resize(width: GLint, height: GLint): void;
    }

    interface StackGLExtension {
        getExtension(extensionName: "STACKGL_destroy_context"): STACKGL_destroy_context | null;
        getExtension(extensionName: "STACKGL_resize_drawingbuffer"): STACKGL_resize_drawingbuffer | null;
    }

    const WebGLRenderingContext: WebGLRenderingContext & StackGLExtension & {
        new(): WebGLRenderingContext & StackGLExtension;
        prototype: WebGLRenderingContext & StackGLExtension;
    };
}

declare function createContext(
    width: number,
    height: number,
    options?: WebGLContextAttributes,
): WebGLRenderingContext & createContext.StackGLExtension;

export = createContext;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: none

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/gl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
