Skip to content

Commit 7e36a9d

Browse files
cubehouseclaude
andcommitted
feat(api): export parseApiDateTime at package root
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5e87084 commit 7e36a9d

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ export {
99
type LiveDataEntry,
1010
type LiveQueue,
1111
} from './ergonomic/live';
12+
export { parseApiDateTime } from './dates';

test/unit/public-api.test.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { describe, it, expect } from 'vitest';
2+
import {
3+
ApiError,
4+
InMemoryLruCache,
5+
NetworkError,
6+
RateLimitError,
7+
ThemeParks,
8+
ThemeParksError,
9+
TimeoutError,
10+
currentWaitTime,
11+
narrowQueues,
12+
parseApiDateTime,
13+
} from '../../src';
14+
15+
describe('public API surface', () => {
16+
it('exports the documented symbols', () => {
17+
expect(typeof ThemeParks).toBe('function');
18+
expect(typeof currentWaitTime).toBe('function');
19+
expect(typeof narrowQueues).toBe('function');
20+
expect(typeof parseApiDateTime).toBe('function');
21+
expect(typeof InMemoryLruCache).toBe('function');
22+
expect(typeof ApiError).toBe('function');
23+
expect(typeof NetworkError).toBe('function');
24+
expect(typeof RateLimitError).toBe('function');
25+
expect(typeof TimeoutError).toBe('function');
26+
expect(typeof ThemeParksError).toBe('function');
27+
});
28+
});

0 commit comments

Comments
 (0)