Skip to content

Commit 338db87

Browse files
authored
feat(core): expose device adapter schema and types (#3153)
* feat(core): expose device adapter schema and types * chore(core): refresh main-repository CI checks
1 parent 852db06 commit 338db87

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

packages/core/src/device/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,6 +1276,9 @@ export const defineActionSleep = (): DeviceAction<ActionSleepParam> => {
12761276
};
12771277

12781278
export type { DeviceAction } from '../types';
1279+
export type { ActionScrollParam, LocateResultElement, Size } from '../types';
1280+
export { getMidsceneLocationSchema } from '../common';
1281+
export { z };
12791282
export {
12801283
inputStrategies,
12811284
type InputStrategy,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { describe, expect, it } from '@rstest/core';
2+
import { getMidsceneLocationSchema, z } from '../../src/device';
3+
4+
describe('device public exports', () => {
5+
it('exposes schemas needed by external device adapters', () => {
6+
expect(getMidsceneLocationSchema()).toBeInstanceOf(z.ZodType);
7+
});
8+
});

0 commit comments

Comments
 (0)