Provides all common type declarations shared across gl-matrix.
gl-matrix
import { Vec3 } from 'gl-matrix';import type { Vec3Like } from 'gl-matrix/types';const vec: Vec3Like = new Vec3(0, 1, 2); Copy
import { Vec3 } from 'gl-matrix';import type { Vec3Like } from 'gl-matrix/types';const vec: Vec3Like = new Vec3(0, 1, 2);
For JSDoc using the new Typescript 5.5 @import tag:
@import
/** * @import { Vec3Like } from 'gl-matrix/types' */ Copy
/** * @import { Vec3Like } from 'gl-matrix/types' */
For JSDoc using the older import types Typescript mechanism:
import types
/** * @type {import('gl-matrix/types').Vec3Like} */ Copy
/** * @type {import('gl-matrix/types').Vec3Like} */
Provides all common type declarations shared across
gl-matrix
.For JSDoc using the new Typescript 5.5
@import
tag:For JSDoc using the older
import types
Typescript mechanism: