fvtt-types
Version:
TypeScript type definitions for Foundry VTT
29 lines (17 loc) • 1.21 kB
text/typescript
/* eslint-disable @typescript-eslint/no-unused-vars */
// After seeing that none of these types add anything or are even exported a
// very reasonable question may be: Why on earth does this file exist?
//
// Well this is the file in which Foundry defines these types. We don't house
// them here because it has poor discoverability. The names Foundry has chosen
// also overlaps with other existing names, such as SettingConfig vs. ClientSetting.SettingConfig
export {};
type LineIntersection = foundry.utils.LineIntersection;
type LineCircleIntersection = foundry.utils.LineCircleIntersection;
type ResolvedUUID = foundry.utils.ResolvedUUID;
type IterableWeakMapHeldValue<K extends WeakKey> = foundry.utils.IterableWeakMap.HeldValue<K>;
type IterableWeakMapValue<K extends WeakKey, V> = foundry.utils.IterableWeakMap.Value<K, V>;
type StringTreeNode<Leaf extends object> = foundry.utils.StringTree.Node<Leaf>;
type StringTreeEntryFilter<Leaf extends object> = foundry.utils.StringTree.EntryFilter<Leaf>;
type WordTreeEntry<DocumentName extends foundry.abstract.Document.Type> = foundry.utils.WordTree.Entry<DocumentName>;
type EmittedEventListener = foundry.utils.EventEmitterMixin.EventListener;