UNPKG

@rbxts/zircon

Version:

<div> <img src="https://i.imgur.com/YgpbX7G.png" align="left" width="128"/> <h1>ZIRCON</h1> <h3>A clean, sleek, runtime debugging console for Roblox</h3> <a href="https://npmjs.com/package/@rbxts/zircon"><img src="https://badge.fury.io

9 lines (8 loc) 429 B
import { StatefulZirconValidator } from "../StatefulZirconValidator"; import { ZirconValidator } from "../ZirconTypeValidator"; export declare class OptionalValidator<T, U = T> extends StatefulZirconValidator<T | undefined, U | undefined> { private innerValidator; constructor(innerValidator: ZirconValidator<T, U>); Validate(value: unknown): value is T | undefined; Transform(value: T): U | undefined; }