Skip to content

TypeScript Support #101

@enijar

Description

@enijar

Are there plans to provide TypeScript support?

I'm not suggesting a rewrite of the lib in TypeScript (although that would be nice from a maintainer's perspective), but adding a type definition export.

For example defining all the component options, e.g. for Block:

import type { Object3D } from "three";

export interface BlockOptions extends Object3D {
  width: number;
  height: number;
  borderWidth?: number;
  // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions