Skip to content

Commit

Permalink
Added JSDoc for types and interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
SnaBe committed Aug 27, 2024
1 parent 249b218 commit 521a3fc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types/attributes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
/**
* Represents a value that can be used for item attributes.
*/
export type AttributeValue = string | number | boolean | null;

/**
* Represents the stock-keeping unit (SKU) of an item, detailing various attributes.
*/
export interface ISKU extends Record<string, AttributeValue> {
defindex: number;
quality: number;
Expand All @@ -20,6 +26,9 @@ export interface ISKU extends Record<string, AttributeValue> {
paint: number | null;
}

/**
* Represents the prefix mapping for various attributes.
*/
export interface AttributePrefix extends Record<string, string> {
effect: string;
target: string;
Expand Down

0 comments on commit 521a3fc

Please sign in to comment.