UNPKG

@pho9ubenaa/remark-mask-text-beta

Version:

A remark plugin to mask text content with block characters

21 lines 565 B
/** * Type guard for successful Result * * Why (Business Logic Background): * - Ensure TypeScript's Discriminated Union type inference * - Guarantee compile-time type safety and prevent runtime errors */ export const isSuccess = (result) => { return result.ok; }; /** * Type guard for failed Result * * Why (Business Logic Background): * - Guarantee type safety during error handling * - Enable early bug detection through explicit error checking */ export const isFailure = (result) => { return !result.ok; }; //# sourceMappingURL=result.js.map