structured-outputs 0.1.0-beta.20 → 0.1.0-beta.21
Sign up to get free protection for your applications and to get access to all the features.
- package/esm/ResponseFormat.d.ts +21 -0
- package/esm/ResponseFormat.d.ts.map +1 -0
- package/esm/ResponseFormat.js +43 -19
- package/esm/ResponseFormat.js.map +1 -1
- package/esm/oai.d.ts +5 -0
- package/esm/oai.d.ts.map +1 -0
- package/esm/oai.js +2 -0
- package/esm/oai.js.map +1 -0
- package/package.json +5 -10
- package/src/ResponseFormat.ts +48 -41
- package/src/oai.ts +5 -0
- package/esm/_dnt.shims.js +0 -58
- package/esm/_dnt.shims.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/almost_equals.js +0 -47
- package/esm/deps/jsr.io/@std/assert/1.0.8/almost_equals.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/array_includes.js +0 -47
- package/esm/deps/jsr.io/@std/assert/1.0.8/array_includes.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/assert.js +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.8/assert.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.js +0 -31
- package/esm/deps/jsr.io/@std/assert/1.0.8/assertion_error.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js +0 -184
- package/esm/deps/jsr.io/@std/assert/1.0.8/equal.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.8/equals.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/exists.js +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.8/exists.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/fail.js +0 -21
- package/esm/deps/jsr.io/@std/assert/1.0.8/fail.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.js +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.8/false.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.8/instance_of.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.8/is_error.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/less.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.8/less.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/less_or_equal.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.8/less_or_equal.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.js +0 -27
- package/esm/deps/jsr.io/@std/assert/1.0.8/match.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/mod.js +0 -46
- package/esm/deps/jsr.io/@std/assert/1.0.8/mod.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_equals.js +0 -33
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_equals.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_instance_of.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.js +0 -27
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_match.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js +0 -33
- package/esm/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/object_match.js +0 -160
- package/esm/deps/jsr.io/@std/assert/1.0.8/object_match.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.8/rejects.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.js +0 -58
- package/esm/deps/jsr.io/@std/assert/1.0.8/strict_equals.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/string_includes.js +0 -27
- package/esm/deps/jsr.io/@std/assert/1.0.8/string_includes.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/throws.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.8/throws.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/unimplemented.js +0 -21
- package/esm/deps/jsr.io/@std/assert/1.0.8/unimplemented.js.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.8/unreachable.js +0 -21
- package/esm/deps/jsr.io/@std/assert/1.0.8/unreachable.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -38
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -208
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js.map +0 -1
- package/src/_dnt.shims.ts +0 -60
- package/src/deps/jsr.io/@std/assert/1.0.8/almost_equals.ts +0 -55
- package/src/deps/jsr.io/@std/assert/1.0.8/array_includes.ts +0 -57
- package/src/deps/jsr.io/@std/assert/1.0.8/assert.ts +0 -23
- package/src/deps/jsr.io/@std/assert/1.0.8/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.8/equal.ts +0 -210
- package/src/deps/jsr.io/@std/assert/1.0.8/equals.ts +0 -52
- package/src/deps/jsr.io/@std/assert/1.0.8/exists.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.8/fail.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.8/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.8/greater.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.8/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.8/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.8/less.ts +0 -29
- package/src/deps/jsr.io/@std/assert/1.0.8/less_or_equal.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.8/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.8/mod.ts +0 -47
- package/src/deps/jsr.io/@std/assert/1.0.8/not_equals.ts +0 -36
- package/src/deps/jsr.io/@std/assert/1.0.8/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.8/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.8/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/assert/1.0.8/rejects.ts +0 -123
- package/src/deps/jsr.io/@std/assert/1.0.8/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/assert/1.0.8/string_includes.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.8/throws.ts +0 -111
- package/src/deps/jsr.io/@std/assert/1.0.8/unimplemented.ts +0 -21
- package/src/deps/jsr.io/@std/assert/1.0.8/unreachable.ts +0 -21
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
- package/types/ResponseFormat.d.ts +0 -26
- package/types/ResponseFormat.d.ts.map +0 -1
- package/types/_dnt.shims.d.ts +0 -2
- package/types/_dnt.shims.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts +0 -29
- package/types/deps/jsr.io/@std/assert/1.0.8/almost_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts +0 -24
- package/types/deps/jsr.io/@std/assert/1.0.8/array_includes.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/assert.d.ts +0 -16
- package/types/deps/jsr.io/@std/assert/1.0.8/assert.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts +0 -26
- package/types/deps/jsr.io/@std/assert/1.0.8/assertion_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/equal.d.ts +0 -17
- package/types/deps/jsr.io/@std/assert/1.0.8/equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/equals.d.ts +0 -22
- package/types/deps/jsr.io/@std/assert/1.0.8/equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/exists.d.ts +0 -18
- package/types/deps/jsr.io/@std/assert/1.0.8/exists.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/fail.d.ts +0 -15
- package/types/deps/jsr.io/@std/assert/1.0.8/fail.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/false.d.ts +0 -18
- package/types/deps/jsr.io/@std/assert/1.0.8/false.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/greater.d.ts +0 -20
- package/types/deps/jsr.io/@std/assert/1.0.8/greater.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts +0 -20
- package/types/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts +0 -23
- package/types/deps/jsr.io/@std/assert/1.0.8/instance_of.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts +0 -25
- package/types/deps/jsr.io/@std/assert/1.0.8/is_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/less.d.ts +0 -19
- package/types/deps/jsr.io/@std/assert/1.0.8/less.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts +0 -20
- package/types/deps/jsr.io/@std/assert/1.0.8/less_or_equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/match.d.ts +0 -18
- package/types/deps/jsr.io/@std/assert/1.0.8/match.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/mod.d.ts +0 -44
- package/types/deps/jsr.io/@std/assert/1.0.8/mod.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts +0 -21
- package/types/deps/jsr.io/@std/assert/1.0.8/not_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts +0 -20
- package/types/deps/jsr.io/@std/assert/1.0.8/not_instance_of.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts +0 -18
- package/types/deps/jsr.io/@std/assert/1.0.8/not_match.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts +0 -23
- package/types/deps/jsr.io/@std/assert/1.0.8/not_strict_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts +0 -28
- package/types/deps/jsr.io/@std/assert/1.0.8/object_match.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts +0 -42
- package/types/deps/jsr.io/@std/assert/1.0.8/rejects.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts +0 -24
- package/types/deps/jsr.io/@std/assert/1.0.8/strict_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts +0 -18
- package/types/deps/jsr.io/@std/assert/1.0.8/string_includes.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/throws.d.ts +0 -45
- package/types/deps/jsr.io/@std/assert/1.0.8/throws.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts +0 -15
- package/types/deps/jsr.io/@std/assert/1.0.8/unimplemented.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/1.0.8/unreachable.d.ts +0 -15
- package/types/deps/jsr.io/@std/assert/1.0.8/unreachable.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/types/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/types/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/types/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/types/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/types/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/types/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- /package/{types → esm}/Tool.d.ts +0 -0
- /package/{types → esm}/Tool.d.ts.map +0 -0
- /package/{types → esm}/_dnt.polyfills.d.ts +0 -0
- /package/{types → esm}/_dnt.polyfills.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/_utils.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/_utils.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/aggregate_groups.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/aggregate_groups.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/associate_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/associate_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/associate_with.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/associate_with.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/chunk.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/chunk.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/deep_merge.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/deep_merge.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/distinct.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/distinct.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/distinct_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/distinct_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/drop_last_while.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/drop_last_while.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/drop_while.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/drop_while.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_entries.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_entries.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_keys.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_keys.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_values.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/filter_values.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/find_single.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/find_single.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/first_not_nullish_of.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/first_not_nullish_of.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/includes_value.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/includes_value.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/intersect.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/intersect.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/invert.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/invert.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/invert_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/invert_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/join_to_string.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/join_to_string.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_entries.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_entries.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_keys.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_keys.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_not_nullish.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_not_nullish.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_values.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/map_values.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_of.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_of.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_with.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/max_with.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_of.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_of.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_with.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/min_with.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/mod.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/mod.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/omit.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/omit.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/partition.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/partition.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/partition_entries.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/partition_entries.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/permutations.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/permutations.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/pick.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/pick.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/reduce_groups.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/reduce_groups.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/running_reduce.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/running_reduce.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sample.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sample.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sliding_windows.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sliding_windows.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sort_by.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sort_by.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sum_of.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/sum_of.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/take_last_while.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/take_last_while.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/take_while.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/take_while.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/union.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/union.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/unzip.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/unzip.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/without_all.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/without_all.d.ts.map +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/zip.d.ts +0 -0
- /package/{types → esm}/deps/jsr.io/@std/collections/1.0.9/zip.d.ts.map +0 -0
- /package/{types → esm}/mod.d.ts +0 -0
- /package/{types → esm}/mod.d.ts.map +0 -0
- /package/{types → esm}/types/Ref.d.ts +0 -0
- /package/{types → esm}/types/Ref.d.ts.map +0 -0
- /package/{types → esm}/types/RootTy.d.ts +0 -0
- /package/{types → esm}/types/RootTy.d.ts.map +0 -0
- /package/{types → esm}/types/Ty.d.ts +0 -0
- /package/{types → esm}/types/Ty.d.ts.map +0 -0
- /package/{types → esm}/types/array.d.ts +0 -0
- /package/{types → esm}/types/array.d.ts.map +0 -0
- /package/{types → esm}/types/constant.d.ts +0 -0
- /package/{types → esm}/types/constant.d.ts.map +0 -0
- /package/{types → esm}/types/constantUnion.d.ts +0 -0
- /package/{types → esm}/types/constantUnion.d.ts.map +0 -0
- /package/{types → esm}/types/leaves.d.ts +0 -0
- /package/{types → esm}/types/leaves.d.ts.map +0 -0
- /package/{types → esm}/types/mod.d.ts +0 -0
- /package/{types → esm}/types/mod.d.ts.map +0 -0
- /package/{types → esm}/types/object.d.ts +0 -0
- /package/{types → esm}/types/object.d.ts.map +0 -0
- /package/{types → esm}/types/std/Option.d.ts +0 -0
- /package/{types → esm}/types/std/Option.d.ts.map +0 -0
- /package/{types → esm}/types/std/Wrapper.d.ts +0 -0
- /package/{types → esm}/types/std/Wrapper.d.ts.map +0 -0
- /package/{types → esm}/types/std/mod.d.ts +0 -0
- /package/{types → esm}/types/std/mod.d.ts.map +0 -0
- /package/{types → esm}/types/taggedUnion.d.ts +0 -0
- /package/{types → esm}/types/taggedUnion.d.ts.map +0 -0
- /package/{types → esm}/util/phantoms.d.ts +0 -0
- /package/{types → esm}/util/phantoms.d.ts.map +0 -0
- /package/{types → esm}/util/recombineTaggedTemplateArgs.d.ts +0 -0
- /package/{types → esm}/util/recombineTaggedTemplateArgs.d.ts.map +0 -0
@@ -1,233 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
// This module is browser compatible.
|
3
|
-
// A module to print ANSI terminal colors. Inspired by chalk, kleur, and colors
|
4
|
-
// on npm.
|
5
|
-
|
6
|
-
// This code is vendored from `fmt/colors.ts`.
|
7
|
-
|
8
|
-
// deno-lint-ignore no-explicit-any
|
9
|
-
import * as dntShim from "../../../../../_dnt.shims.js";
|
10
|
-
|
11
|
-
const { Deno } = dntShim.dntGlobalThis as any;
|
12
|
-
const noColor = typeof Deno?.noColor === "boolean"
|
13
|
-
? Deno.noColor as boolean
|
14
|
-
: false;
|
15
|
-
|
16
|
-
interface Code {
|
17
|
-
open: string;
|
18
|
-
close: string;
|
19
|
-
regexp: RegExp;
|
20
|
-
}
|
21
|
-
|
22
|
-
const enabled = !noColor;
|
23
|
-
|
24
|
-
function code(open: number[], close: number): Code {
|
25
|
-
return {
|
26
|
-
open: `\x1b[${open.join(";")}m`,
|
27
|
-
close: `\x1b[${close}m`,
|
28
|
-
regexp: new RegExp(`\\x1b\\[${close}m`, "g"),
|
29
|
-
};
|
30
|
-
}
|
31
|
-
|
32
|
-
function run(str: string, code: Code): string {
|
33
|
-
return enabled
|
34
|
-
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
|
35
|
-
: str;
|
36
|
-
}
|
37
|
-
|
38
|
-
/**
|
39
|
-
* Sets the style of text to be printed to bold.
|
40
|
-
*
|
41
|
-
* Disable by setting the `NO_COLOR` environmental variable.
|
42
|
-
*
|
43
|
-
* @param str Text to make bold
|
44
|
-
*
|
45
|
-
* @returns Bold text for printing
|
46
|
-
*
|
47
|
-
* @example Usage
|
48
|
-
* ```ts no-assert
|
49
|
-
* import { bold } from "@std/internal/styles";
|
50
|
-
*
|
51
|
-
* console.log(bold("Hello, world!")); // Prints "Hello, world!" in bold
|
52
|
-
* ```
|
53
|
-
*/
|
54
|
-
export function bold(str: string): string {
|
55
|
-
return run(str, code([1], 22));
|
56
|
-
}
|
57
|
-
|
58
|
-
/**
|
59
|
-
* Sets the color of text to be printed to red.
|
60
|
-
*
|
61
|
-
* Disable by setting the `NO_COLOR` environmental variable.
|
62
|
-
*
|
63
|
-
* @param str Text to make red
|
64
|
-
*
|
65
|
-
* @returns Red text for printing
|
66
|
-
*
|
67
|
-
* @example Usage
|
68
|
-
* ```ts no-assert
|
69
|
-
* import { red } from "@std/internal/styles";
|
70
|
-
*
|
71
|
-
* console.log(red("Hello, world!")); // Prints "Hello, world!" in red
|
72
|
-
* ```
|
73
|
-
*/
|
74
|
-
export function red(str: string): string {
|
75
|
-
return run(str, code([31], 39));
|
76
|
-
}
|
77
|
-
|
78
|
-
/**
|
79
|
-
* Sets the color of text to be printed to green.
|
80
|
-
*
|
81
|
-
* Disable by setting the `NO_COLOR` environmental variable.
|
82
|
-
*
|
83
|
-
* @param str Text to make green
|
84
|
-
*
|
85
|
-
* @returns Green text for print
|
86
|
-
*
|
87
|
-
* @example Usage
|
88
|
-
* ```ts no-assert
|
89
|
-
* import { green } from "@std/internal/styles";
|
90
|
-
*
|
91
|
-
* console.log(green("Hello, world!")); // Prints "Hello, world!" in green
|
92
|
-
* ```
|
93
|
-
*/
|
94
|
-
export function green(str: string): string {
|
95
|
-
return run(str, code([32], 39));
|
96
|
-
}
|
97
|
-
|
98
|
-
/**
|
99
|
-
* Sets the color of text to be printed to yellow.
|
100
|
-
*
|
101
|
-
* Disable by setting the `NO_COLOR` environmental variable.
|
102
|
-
*
|
103
|
-
* @param str Text to make yellow
|
104
|
-
*
|
105
|
-
* @returns Yellow text for print
|
106
|
-
*
|
107
|
-
* @example Usage
|
108
|
-
* ```ts no-assert
|
109
|
-
* import { yellow } from "@std/internal/styles";
|
110
|
-
*
|
111
|
-
* console.log(yellow("Hello, world!")); // Prints "Hello, world!" in yellow
|
112
|
-
* ```
|
113
|
-
*/
|
114
|
-
export function yellow(str: string): string {
|
115
|
-
return run(str, code([33], 39));
|
116
|
-
}
|
117
|
-
|
118
|
-
/**
|
119
|
-
* Sets the color of text to be printed to white.
|
120
|
-
*
|
121
|
-
* @param str Text to make white
|
122
|
-
*
|
123
|
-
* @returns White text for print
|
124
|
-
*
|
125
|
-
* @example Usage
|
126
|
-
* ```ts no-assert
|
127
|
-
* import { white } from "@std/internal/styles";
|
128
|
-
*
|
129
|
-
* console.log(white("Hello, world!")); // Prints "Hello, world!" in white
|
130
|
-
* ```
|
131
|
-
*/
|
132
|
-
export function white(str: string): string {
|
133
|
-
return run(str, code([37], 39));
|
134
|
-
}
|
135
|
-
|
136
|
-
/**
|
137
|
-
* Sets the color of text to be printed to gray.
|
138
|
-
*
|
139
|
-
* @param str Text to make gray
|
140
|
-
*
|
141
|
-
* @returns Gray text for print
|
142
|
-
*
|
143
|
-
* @example Usage
|
144
|
-
* ```ts no-assert
|
145
|
-
* import { gray } from "@std/internal/styles";
|
146
|
-
*
|
147
|
-
* console.log(gray("Hello, world!")); // Prints "Hello, world!" in gray
|
148
|
-
* ```
|
149
|
-
*/
|
150
|
-
export function gray(str: string): string {
|
151
|
-
return brightBlack(str);
|
152
|
-
}
|
153
|
-
|
154
|
-
/**
|
155
|
-
* Sets the color of text to be printed to bright-black.
|
156
|
-
*
|
157
|
-
* @param str Text to make bright-black
|
158
|
-
*
|
159
|
-
* @returns Bright-black text for print
|
160
|
-
*
|
161
|
-
* @example Usage
|
162
|
-
* ```ts no-assert
|
163
|
-
* import { brightBlack } from "@std/internal/styles";
|
164
|
-
*
|
165
|
-
* console.log(brightBlack("Hello, world!")); // Prints "Hello, world!" in bright-black
|
166
|
-
* ```
|
167
|
-
*/
|
168
|
-
export function brightBlack(str: string): string {
|
169
|
-
return run(str, code([90], 39));
|
170
|
-
}
|
171
|
-
|
172
|
-
/**
|
173
|
-
* Sets the background color of text to be printed to red.
|
174
|
-
*
|
175
|
-
* @param str Text to make its background red
|
176
|
-
*
|
177
|
-
* @returns Red background text for print
|
178
|
-
*
|
179
|
-
* @example Usage
|
180
|
-
* ```ts no-assert
|
181
|
-
* import { bgRed } from "@std/internal/styles";
|
182
|
-
*
|
183
|
-
* console.log(bgRed("Hello, world!")); // Prints "Hello, world!" with red background
|
184
|
-
* ```
|
185
|
-
*/
|
186
|
-
export function bgRed(str: string): string {
|
187
|
-
return run(str, code([41], 49));
|
188
|
-
}
|
189
|
-
|
190
|
-
/**
|
191
|
-
* Sets the background color of text to be printed to green.
|
192
|
-
*
|
193
|
-
* @param str Text to make its background green
|
194
|
-
*
|
195
|
-
* @returns Green background text for print
|
196
|
-
*
|
197
|
-
* @example Usage
|
198
|
-
* ```ts no-assert
|
199
|
-
* import { bgGreen } from "@std/internal/styles";
|
200
|
-
*
|
201
|
-
* console.log(bgGreen("Hello, world!")); // Prints "Hello, world!" with green background
|
202
|
-
* ```
|
203
|
-
*/
|
204
|
-
export function bgGreen(str: string): string {
|
205
|
-
return run(str, code([42], 49));
|
206
|
-
}
|
207
|
-
|
208
|
-
// https://github.com/chalk/ansi-regex/blob/02fa893d619d3da85411acc8fd4e2eea0e95a9d9/index.js
|
209
|
-
const ANSI_PATTERN = new RegExp(
|
210
|
-
[
|
211
|
-
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
212
|
-
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TXZcf-nq-uy=><~]))",
|
213
|
-
].join("|"),
|
214
|
-
"g",
|
215
|
-
);
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Remove ANSI escape codes from the string.
|
219
|
-
*
|
220
|
-
* @param string Text to remove ANSI escape codes from
|
221
|
-
*
|
222
|
-
* @returns Text without ANSI escape codes
|
223
|
-
*
|
224
|
-
* @example Usage
|
225
|
-
* ```ts no-assert
|
226
|
-
* import { red, stripAnsiCode } from "@std/internal/styles";
|
227
|
-
*
|
228
|
-
* console.log(stripAnsiCode(red("Hello, world!"))); // Prints "Hello, world!"
|
229
|
-
* ```
|
230
|
-
*/
|
231
|
-
export function stripAnsiCode(string: string): string {
|
232
|
-
return string.replace(ANSI_PATTERN, "");
|
233
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2
|
-
|
3
|
-
/** Ways that lines in a diff can be different. */
|
4
|
-
export type DiffType = "removed" | "common" | "added";
|
5
|
-
|
6
|
-
/**
|
7
|
-
* Represents the result of a diff operation.
|
8
|
-
*
|
9
|
-
* @typeParam T The type of the value in the diff result.
|
10
|
-
*/
|
11
|
-
export interface DiffResult<T> {
|
12
|
-
/** The type of the diff. */
|
13
|
-
type: DiffType;
|
14
|
-
/** The value of the diff. */
|
15
|
-
value: T;
|
16
|
-
/** The details of the diff. */
|
17
|
-
details?: DiffResult<T>[];
|
18
|
-
}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import type Openai from "openai";
|
2
|
-
import type { ResponseFormatJSONSchema } from "openai/resources/index.js";
|
3
|
-
import type { RootTy } from "./types/mod.js";
|
4
|
-
export declare function ResponseFormat<T>(name: string, ty: RootTy<T, never>): ResponseFormat<T>;
|
5
|
-
export interface ResponseFormat<T> {
|
6
|
-
(template: TemplateStringsArray, ...quasis: Array<string>): ResponseFormat<T>;
|
7
|
-
type: "json_schema";
|
8
|
-
/** The desired return type in JSON Schema. */
|
9
|
-
json_schema: ResponseFormatJSONSchema.JSONSchema;
|
10
|
-
/** Parse inner responses into a typed object. */
|
11
|
-
parse(completion: ChatCompletion): TypedChatCompletion<T>;
|
12
|
-
/** Parse and return the first inner response into a typed object. */
|
13
|
-
parseFirstOrThrow(completion: ChatCompletion): T;
|
14
|
-
}
|
15
|
-
export type TypedChatCompletion<T> = Omit<ChatCompletion, "choices"> & {
|
16
|
-
choices: Array<Omit<ChatCompletionChoice, "message"> & {
|
17
|
-
message: Omit<ChatCompletionMessage, "content"> & {
|
18
|
-
content: T;
|
19
|
-
};
|
20
|
-
}>;
|
21
|
-
};
|
22
|
-
type ChatCompletion = Openai.Chat.ChatCompletion;
|
23
|
-
type ChatCompletionChoice = Openai.Chat.ChatCompletion.Choice;
|
24
|
-
type ChatCompletionMessage = Openai.Chat.Completions.ChatCompletionMessage;
|
25
|
-
export {};
|
26
|
-
//# sourceMappingURL=ResponseFormat.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ResponseFormat.d.ts","sourceRoot":"","sources":["../src/ResponseFormat.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAChC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAG5C,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAEvF;AAkDD,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,CAAC,QAAQ,EAAE,oBAAoB,EAAE,GAAG,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAA;IAC7E,IAAI,EAAE,aAAa,CAAA;IACnB,8CAA8C;IAC9C,WAAW,EAAE,wBAAwB,CAAC,UAAU,CAAA;IAChD,iDAAiD;IACjD,KAAK,CAAC,UAAU,EAAE,cAAc,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACzD,qEAAqE;IACrE,iBAAiB,CAAC,UAAU,EAAE,cAAc,GAAG,CAAC,CAAA;CACjD;AAED,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IACrE,OAAO,EAAE,KAAK,CACZ,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,GAAG;QACtC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG;YAChD,OAAO,EAAE,CAAC,CAAA;SACX,CAAA;KACF,CACF,CAAA;CACF,CAAA;AAED,KAAK,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAA;AAChD,KAAK,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAA;AAC7D,KAAK,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,qBAAqB,CAAA"}
|
package/types/_dnt.shims.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAA2C,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `actual` and `expected` are almost equal numbers
|
3
|
-
* through a given tolerance. It can be used to take into account IEEE-754
|
4
|
-
* double-precision floating-point representation limitations. If the values
|
5
|
-
* are not almost equal then throw.
|
6
|
-
*
|
7
|
-
* The default tolerance is one hundred thousandth of a percent of the
|
8
|
-
* expected value.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts ignore
|
12
|
-
* import { assertAlmostEquals } from "@std/assert";
|
13
|
-
*
|
14
|
-
* assertAlmostEquals(0.01, 0.02); // Throws
|
15
|
-
* assertAlmostEquals(1e-8, 1e-9); // Throws
|
16
|
-
* assertAlmostEquals(1.000000001e-8, 1.000000002e-8); // Doesn't throw
|
17
|
-
* assertAlmostEquals(0.01, 0.02, 0.1); // Doesn't throw
|
18
|
-
* assertAlmostEquals(0.1 + 0.2, 0.3, 1e-16); // Doesn't throw
|
19
|
-
* assertAlmostEquals(0.1 + 0.2, 0.3, 1e-17); // Throws
|
20
|
-
* ```
|
21
|
-
*
|
22
|
-
* @param actual The actual value to compare.
|
23
|
-
* @param expected The expected value to compare.
|
24
|
-
* @param tolerance The tolerance to consider the values almost equal. The
|
25
|
-
* default is one hundred thousandth of a percent of the expected value.
|
26
|
-
* @param msg The optional message to include in the error.
|
27
|
-
*/
|
28
|
-
export declare function assertAlmostEquals(actual: number, expected: number, tolerance?: number, msg?: string): void;
|
29
|
-
//# sourceMappingURL=almost_equals.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"almost_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/almost_equals.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,GAAG,CAAC,EAAE,MAAM,QAmBb"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/** An array-like object (`Array`, `Uint8Array`, `NodeList`, etc.) that is not a string */
|
2
|
-
export type ArrayLikeArg<T> = ArrayLike<T> & object;
|
3
|
-
/**
|
4
|
-
* Make an assertion that `actual` includes the `expected` values. If not then
|
5
|
-
* an error will be thrown.
|
6
|
-
*
|
7
|
-
* Type parameter can be specified to ensure values under comparison have the
|
8
|
-
* same type.
|
9
|
-
*
|
10
|
-
* @example Usage
|
11
|
-
* ```ts ignore
|
12
|
-
* import { assertArrayIncludes } from "@std/assert";
|
13
|
-
*
|
14
|
-
* assertArrayIncludes([1, 2], [2]); // Doesn't throw
|
15
|
-
* assertArrayIncludes([1, 2], [3]); // Throws
|
16
|
-
* ```
|
17
|
-
*
|
18
|
-
* @typeParam T The type of the elements in the array to compare.
|
19
|
-
* @param actual The array-like object to check for.
|
20
|
-
* @param expected The array-like object to check for.
|
21
|
-
* @param msg The optional message to display if the assertion fails.
|
22
|
-
*/
|
23
|
-
export declare function assertArrayIncludes<T>(actual: ArrayLikeArg<T>, expected: ArrayLikeArg<T>, msg?: string): void;
|
24
|
-
//# sourceMappingURL=array_includes.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"array_includes.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/array_includes.ts"],"names":[],"mappings":"AAMA,0FAA0F;AAC1F,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;AAEpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EACzB,GAAG,CAAC,EAAE,MAAM,QAwBb"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion, error will be thrown if `expr` does not have truthy value.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts ignore
|
6
|
-
* import { assert } from "@std/assert";
|
7
|
-
*
|
8
|
-
* assert("hello".includes("ello")); // Doesn't throw
|
9
|
-
* assert("hello".includes("world")); // Throws
|
10
|
-
* ```
|
11
|
-
*
|
12
|
-
* @param expr The expression to test.
|
13
|
-
* @param msg The optional message to display if the assertion fails.
|
14
|
-
*/
|
15
|
-
export declare function assert(expr: unknown, msg?: string): asserts expr;
|
16
|
-
//# sourceMappingURL=assert.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Error thrown when an assertion fails.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts ignore
|
6
|
-
* import { AssertionError } from "@std/assert";
|
7
|
-
*
|
8
|
-
* try {
|
9
|
-
* throw new AssertionError("foo", { cause: "bar" });
|
10
|
-
* } catch (error) {
|
11
|
-
* if (error instanceof AssertionError) {
|
12
|
-
* error.message === "foo"; // true
|
13
|
-
* error.cause === "bar"; // true
|
14
|
-
* }
|
15
|
-
* }
|
16
|
-
* ```
|
17
|
-
*/
|
18
|
-
export declare class AssertionError extends Error {
|
19
|
-
/** Constructs a new instance.
|
20
|
-
*
|
21
|
-
* @param message The error message.
|
22
|
-
* @param options Additional options. This argument is still unstable. It may change in the future release.
|
23
|
-
*/
|
24
|
-
constructor(message: string, options?: ErrorOptions);
|
25
|
-
}
|
26
|
-
//# sourceMappingURL=assertion_error.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Deep equality comparison used in assertions.
|
3
|
-
*
|
4
|
-
* @param a The actual value
|
5
|
-
* @param b The expected value
|
6
|
-
* @returns `true` if the values are deeply equal, `false` otherwise
|
7
|
-
*
|
8
|
-
* @example Usage
|
9
|
-
* ```ts
|
10
|
-
* import { equal } from "@std/assert/equal";
|
11
|
-
*
|
12
|
-
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
13
|
-
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false`
|
14
|
-
* ```
|
15
|
-
*/
|
16
|
-
export declare function equal(a: unknown, b: unknown): boolean;
|
17
|
-
//# sourceMappingURL=equal.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/equal.ts"],"names":[],"mappings":"AA2FA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAuGrD"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
3
|
-
* deeply equal, then throw.
|
4
|
-
*
|
5
|
-
* Type parameter can be specified to ensure values under comparison have the
|
6
|
-
* same type.
|
7
|
-
*
|
8
|
-
* @example Usage
|
9
|
-
* ```ts ignore
|
10
|
-
* import { assertEquals } from "@std/assert";
|
11
|
-
*
|
12
|
-
* assertEquals("world", "world"); // Doesn't throw
|
13
|
-
* assertEquals("hello", "world"); // Throws
|
14
|
-
* ```
|
15
|
-
*
|
16
|
-
* @typeParam T The type of the values to compare. This is usually inferred.
|
17
|
-
* @param actual The actual value to compare.
|
18
|
-
* @param expected The expected value to compare.
|
19
|
-
* @param msg The optional message to display if the assertion fails.
|
20
|
-
*/
|
21
|
-
export declare function assertEquals<T>(actual: T, expected: T, msg?: string): void;
|
22
|
-
//# sourceMappingURL=equals.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAkBb"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that actual is not null or undefined.
|
3
|
-
* If not then throw.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts ignore
|
7
|
-
* import { assertExists } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertExists("something"); // Doesn't throw
|
10
|
-
* assertExists(undefined); // Throws
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @typeParam T The type of the actual value.
|
14
|
-
* @param actual The actual value to check.
|
15
|
-
* @param msg The optional message to include in the error if the assertion fails.
|
16
|
-
*/
|
17
|
-
export declare function assertExists<T>(actual: T, msg?: string): asserts actual is NonNullable<T>;
|
18
|
-
//# sourceMappingURL=exists.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Forcefully throws a failed assertion.
|
3
|
-
*
|
4
|
-
* @example Usage
|
5
|
-
* ```ts ignore
|
6
|
-
* import { fail } from "@std/assert";
|
7
|
-
*
|
8
|
-
* fail("Deliberately failed!"); // Throws
|
9
|
-
* ```
|
10
|
-
*
|
11
|
-
* @param msg Optional message to include in the error.
|
12
|
-
* @returns Never returns, always throws.
|
13
|
-
*/
|
14
|
-
export declare function fail(msg?: string): never;
|
15
|
-
//# sourceMappingURL=fail.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/** Assertion condition for {@linkcode assertFalse}. */
|
2
|
-
export type Falsy = false | 0 | 0n | "" | null | undefined;
|
3
|
-
/**
|
4
|
-
* Make an assertion, error will be thrown if `expr` have truthy value.
|
5
|
-
*
|
6
|
-
* @example Usage
|
7
|
-
* ```ts ignore
|
8
|
-
* import { assertFalse } from "@std/assert";
|
9
|
-
*
|
10
|
-
* assertFalse(false); // Doesn't throw
|
11
|
-
* assertFalse(true); // Throws
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @param expr The expression to test.
|
15
|
-
* @param msg The optional message to display if the assertion fails.
|
16
|
-
*/
|
17
|
-
export declare function assertFalse(expr: unknown, msg?: string): asserts expr is Falsy;
|
18
|
-
//# sourceMappingURL=false.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `actual` is greater than `expected`.
|
3
|
-
* If not then throw.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts ignore
|
7
|
-
* import { assertGreater } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertGreater(2, 1); // Doesn't throw
|
10
|
-
* assertGreater(1, 1); // Throws
|
11
|
-
* assertGreater(0, 1); // Throws
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @typeParam T The type of the values to compare.
|
15
|
-
* @param actual The actual value to compare.
|
16
|
-
* @param expected The expected value to compare.
|
17
|
-
* @param msg The optional message to display if the assertion fails.
|
18
|
-
*/
|
19
|
-
export declare function assertGreater<T>(actual: T, expected: T, msg?: string): void;
|
20
|
-
//# sourceMappingURL=greater.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `actual` is greater than or equal to `expected`.
|
3
|
-
* If not then throw.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts ignore
|
7
|
-
* import { assertGreaterOrEqual } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertGreaterOrEqual(2, 1); // Doesn't throw
|
10
|
-
* assertGreaterOrEqual(1, 1); // Doesn't throw
|
11
|
-
* assertGreaterOrEqual(0, 1); // Throws
|
12
|
-
* ```
|
13
|
-
*
|
14
|
-
* @typeParam T The type of the values to compare.
|
15
|
-
* @param actual The actual value to compare.
|
16
|
-
* @param expected The expected value to compare.
|
17
|
-
* @param msg The optional message to display if the assertion fails.
|
18
|
-
*/
|
19
|
-
export declare function assertGreaterOrEqual<T>(actual: T, expected: T, msg?: string): void;
|
20
|
-
//# sourceMappingURL=greater_or_equal.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
/** Any constructor */
|
2
|
-
export type AnyConstructor = new (...args: any[]) => any;
|
3
|
-
/** Gets constructor type */
|
4
|
-
export type GetConstructorType<T extends AnyConstructor> = InstanceType<T>;
|
5
|
-
/**
|
6
|
-
* Make an assertion that `obj` is an instance of `type`.
|
7
|
-
* If not then throw.
|
8
|
-
*
|
9
|
-
* @example Usage
|
10
|
-
* ```ts ignore
|
11
|
-
* import { assertInstanceOf } from "@std/assert";
|
12
|
-
*
|
13
|
-
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
14
|
-
* assertInstanceOf(new Date(), Number); // Throws
|
15
|
-
* ```
|
16
|
-
*
|
17
|
-
* @typeParam T The expected type of the object.
|
18
|
-
* @param actual The object to check.
|
19
|
-
* @param expectedType The expected class constructor.
|
20
|
-
* @param msg The optional message to display if the assertion fails.
|
21
|
-
*/
|
22
|
-
export declare function assertInstanceOf<T extends abstract new (...args: any[]) => any>(actual: unknown, expectedType: T, msg?: string): asserts actual is InstanceType<T>;
|
23
|
-
//# sourceMappingURL=instance_of.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `error` is an `Error`.
|
3
|
-
* If not then an error will be thrown.
|
4
|
-
* An error class and a string that should be included in the
|
5
|
-
* error message can also be asserted.
|
6
|
-
*
|
7
|
-
* @example Usage
|
8
|
-
* ```ts ignore
|
9
|
-
* import { assertIsError } from "@std/assert";
|
10
|
-
*
|
11
|
-
* assertIsError(null); // Throws
|
12
|
-
* assertIsError(new RangeError("Out of range")); // Doesn't throw
|
13
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError); // Throws
|
14
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError, "Out of range"); // Doesn't throw
|
15
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError, "Within range"); // Throws
|
16
|
-
* ```
|
17
|
-
*
|
18
|
-
* @typeParam E The type of the error to assert.
|
19
|
-
* @param error The error to assert.
|
20
|
-
* @param ErrorClass The optional error class to assert.
|
21
|
-
* @param msgMatches The optional string or RegExp to assert in the error message.
|
22
|
-
* @param msg The optional message to display if the assertion fails.
|
23
|
-
*/
|
24
|
-
export declare function assertIsError<E extends Error = Error>(error: unknown, ErrorClass?: abstract new (...args: any[]) => E, msgMatches?: string | RegExp, msg?: string): asserts error is E;
|
25
|
-
//# sourceMappingURL=is_error.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Make an assertion that `actual` is less than `expected`.
|
3
|
-
* If not then throw.
|
4
|
-
*
|
5
|
-
* @example Usage
|
6
|
-
* ```ts ignore
|
7
|
-
* import { assertLess } from "@std/assert";
|
8
|
-
*
|
9
|
-
* assertLess(1, 2); // Doesn't throw
|
10
|
-
* assertLess(2, 1); // Throws
|
11
|
-
* ```
|
12
|
-
*
|
13
|
-
* @typeParam T The type of the values to compare.
|
14
|
-
* @param actual The actual value to compare.
|
15
|
-
* @param expected The expected value to compare.
|
16
|
-
* @param msg The optional message to display if the assertion fails.
|
17
|
-
*/
|
18
|
-
export declare function assertLess<T>(actual: T, expected: T, msg?: string): void;
|
19
|
-
//# sourceMappingURL=less.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.8/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|