UNPKG

constatic

Version:

Constatic is a CLI for creating and managing modern TypeScript projects, providing an organized structure and features that streamline development.

14 lines (13 loc) 218 B
// src/lib/result.ts var Result = { ok(value, key) { key ??= "data"; return { success: true, [key]: value }; }, fail(error, code) { return { success: false, error, code }; } }; export { Result };