Skip to content

Commit f090f18

Browse files
committed
revert: don't mess with the exports for now
1 parent 1f2d4d9 commit f090f18

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

__tests__/index.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import type * as RMOAS from '../src/rmoas.types';
33
import petstoreSpec from '@readme/oas-examples/3.0/json/petstore.json';
44
import { beforeAll, describe, test, it, expect, vi } from 'vitest';
55

6-
import Oas from '../src';
7-
import Operation, { Webhook } from '../src/operation';
8-
import utils from '../src/utils';
6+
import Oas, { Operation, Webhook, utils } from '../src';
97

108
let petstore: Oas;
119
let webhooks: Oas;

__tests__/operation.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import petstoreSpec from '@readme/oas-examples/3.0/json/petstore.json';
44
import openapiParser from '@readme/openapi-parser';
55
import { beforeAll, describe, it, expect } from 'vitest';
66

7-
import Oas from '../src';
8-
import Operation, { Callback } from '../src/operation';
7+
import Oas, { Operation, Callback } from '../src';
98

109
let petstore: Oas;
1110
let callbackSchema: Oas;

__tests__/ts-quirks.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { test, expect } from 'vitest';
22

3-
// eslint-disable-next-line import/extensions
43
import Oas from '..';
54

65
/**

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { pathToRegexp, match } from 'path-to-regexp';
88
import getAuth from './lib/get-auth';
99
import getUserVariable from './lib/get-user-variable';
1010
import { isPrimitive } from './lib/helpers';
11-
import Operation, { Webhook } from './operation';
11+
import Operation, { Callback, Webhook } from './operation';
1212
import utils, { supportedMethods } from './utils';
1313

1414
interface PathMatch {
@@ -897,3 +897,5 @@ export default class Oas {
897897
});
898898
}
899899
}
900+
901+
export { Operation, Callback, Webhook, utils };

0 commit comments

Comments
 (0)