@slightning/anything-to-string
Version:
Converts anything to a string.
23 lines (22 loc) • 1.33 kB
TypeScript
import { PrepareContext, RequiredConfig, Rule, ToStringContext } from "../config";
declare function isWeakRef(data: unknown): data is WeakRef<WeakKey>;
export declare class MinimumWeakRefRule implements Rule<WeakRef<WeakKey>> {
test: typeof isWeakRef;
toString(this: this, __data: WeakRef<WeakKey>, __config: RequiredConfig, __context: ToStringContext): string;
}
export declare class LesserWeakRefRule implements Rule<WeakRef<WeakKey>> {
test: typeof isWeakRef;
prepare(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: PrepareContext): void;
toString(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: ToStringContext): string;
}
export declare class MajorWeakRefRule implements Rule<WeakRef<WeakKey>> {
test: typeof isWeakRef;
prepare(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: PrepareContext): void;
toString(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: ToStringContext): string;
}
export declare class MaximumWeakRefRule implements Rule<WeakRef<WeakKey>> {
test: typeof isWeakRef;
prepare(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: PrepareContext): void;
toString(this: this, data: WeakRef<WeakKey>, config: RequiredConfig, context: ToStringContext): string;
}
export {};