Skip to content

Add TypeScript type definitions #93

@neilzo

Description

@neilzo

We've duplicated a type definition for this repo a few times now:

To DRY things up, we should add this definition to this repo.

The type def we've used (at time of this issue creation) is:

declare module '40phaser' {
  export type LaunchOptions = {
    phaser?: typeof Phaser;
    phaserOptions: {
      parent?: string;
    };
  };

  export const launch40Phaser: (options: LaunchOptions) => void;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsIf you can resolve this issue, please send a PR!type: cleanupTechnical debt, testing, or similar improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions