@illandril/foundryvtt-types
Version:
Type definitions for the Foundry VTT client, used by Illandril's modules
23 lines (20 loc) • 521 B
TypeScript
declare global {
namespace foundry {
namespace data {
namespace fields {
class DataField<T = unknown> {
get required(): boolean;
get nullable(): boolean;
get initial(): T | undefined;
get readonly(): boolean;
get gmOnly(): boolean;
get label(): string;
get hint(): string;
get validationError(): string;
clean(value: unknown, options?: { partial?: boolean }): T;
}
}
}
}
}
export type {};