Skip to content

Instantly share code, notes, and snippets.

@Balastrong
Last active August 17, 2022 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Balastrong/6784d2d12cf887c026a03bbaeec9011b to your computer and use it in GitHub Desktop.
Save Balastrong/6784d2d12cf887c026a03bbaeec9011b to your computer and use it in GitHub Desktop.
wrand - types
export type WeightedItem<T> = {
original: T;
weight: number;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment