UNPKG

@lonu/stc

Version:

A tool for converting OpenApi/Swagger/Apifox into code.

8 lines (7 loc) 273 B
// Copyright 2018-2025 the Deno authors. MIT license. // Copyright the Browserify authors. MIT License. export function assertPath(path) { if (typeof path !== "string") { throw new TypeError(`Path must be a string, received "${JSON.stringify(path)}"`); } }