Skip to content

Commit

Permalink
feat: shorten import (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerAberbach authored Dec 26, 2024
1 parent 469b8a8 commit 9c12e9e
Show file tree
Hide file tree
Showing 53 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion examples/openai-arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const ImagesN = fc.integer({
min: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ArbitraryFile = ({
ay.Output().children(ts.SourceFile({ path: `arbitraries.js` }).code`
// Generated from TypeSpec using \`typespec-fast-check\`
import * as fc from "fast-check";
import fc from "fast-check";
${GlobalArbitraryNamespace({ namespace, sharedArbitraries })}
`)
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/alias-spread/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Model1 = fc.record({
property1: fc.integer(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/array/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Array = fc.array(fc.string());

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/boolean/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Boolean = fc.boolean();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/bytes/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Bytes = fc.uint8Array();
2 changes: 1 addition & 1 deletion test/snapshots/comments/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
MultiLineRecursiveModel: fc.record(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/decimal/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Decimal = fc.double();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/decimal128/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Decimal128 = fc.double();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/dictionary/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Dictionary = fc.dictionary(fc.string(), fc.integer());
2 changes: 1 addition & 1 deletion test/snapshots/empty/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";
2 changes: 1 addition & 1 deletion test/snapshots/enum/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const SingleValueEnum = fc.constant("A");

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/file-model/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({});
2 changes: 1 addition & 1 deletion test/snapshots/file-namespace/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Namespace = {};
2 changes: 1 addition & 1 deletion test/snapshots/float32/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Float32 = fc.float();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/float64/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Float64 = fc.double();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/int16/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const int16 = fc.integer({
min: -32768,
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/int32/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Int32 = fc.integer();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/int64/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Int64 = fc.bigInt({
min: -9223372036854775808n,
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/int8/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const int8 = fc.integer({
min: -128,
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/integer/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Integer = fc.bigInt();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-and-namespace/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Namespace = {};

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-default-property/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Scalar = fc.integer();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-in-namespace/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Namespace = {
$Model: fc.record({}),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-intersection/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Model1 = fc.record({
a: fc.integer(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-is/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Model1 = fc.record({
a: fc.integer(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-optional-property/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const int64 = fc.bigInt({
min: -9223372036854775808n,
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-property-reference/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Model1 = fc.record({
property: fc.string(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model-spread/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Model1 = fc.record({
a: fc.integer(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/model/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
a: fc.integer(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/mutually-recursive-models/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
StringNode: fc.record(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/namespace-in-file-namespace/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Namespace1 = {
Namespace2: {},
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/namespace/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Namespace = {};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
StringNode: fc.record(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
Node: fc.record(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/never-sharing/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const never = fc.constant(null).map(() => {
throw new Error("never");
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/never/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
property: fc.constant(null).map(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/null/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
property1: fc.constant(null),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/numeric-sharing/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const int64 = fc.bigInt({
min: -9223372036854775808n,
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/numeric/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const Numeric = fc.double();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/object/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
a: fc.record({
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/recursive-model/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
Node: fc.record(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
StringNode: fc.record(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/safeint/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const SafeInt = fc.maxSafeInteger();

Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/skipped/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";
2 changes: 1 addition & 1 deletion test/snapshots/string/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const String = fc.string();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

const group = fc.letrec(tie => ({
Tree: fc.record(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/templates/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const TemplateUnion = (a, b) =>
fc.oneof(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/tuple/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
property: fc.tuple(
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/union/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const SimpleUnion = fc.oneof(
fc.string(),
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/unknown/arbitraries.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Generated from TypeSpec using `typespec-fast-check`

import * as fc from "fast-check";
import fc from "fast-check";

export const $Model = fc.record({
property: fc.anything(),
Expand Down
Loading

0 comments on commit 9c12e9e

Please sign in to comment.