Skip to content

Add typing #6

@EthanBurkett

Description

@EthanBurkett

Currently using a custom type file in my project I provided below, native typing would be nice

declare module "minecraft-items" {
  export interface MinecraftItem {
    id: string;
    name: string;
    meta: number;
    type: number;
    icon: string;
  }
  export function get(item: number | string): MinecraftItem;
  export function find(item: number | string): MinecraftItem[];
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions