Skip to content

Commit fa48180

Browse files
fix: respect type for input and server (#2240)
* fix: respect type for input and server * chore: add changelog
1 parent e9bdae8 commit fa48180

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/empty-jars-turn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@redocly/respect-core": patch
3+
"@redocly/cli": patch
4+
---
5+
6+
Fixed type definitions for Respect `input` and `server` options to support both string and string[] values.

packages/respect-core/src/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { type RunFileResult, type RunOptions } from './types.js';
1111

1212
export type RespectOptions = {
1313
files: string[];
14-
input?: string;
15-
server?: string;
14+
input?: string | string[];
15+
server?: string | string[];
1616
workflow?: string[];
1717
skip?: string[];
1818
verbose?: boolean;

0 commit comments

Comments
 (0)