Skip to content

Commit

Permalink
fix: expose Key to make sure it's included in types (#64)
Browse files Browse the repository at this point in the history
Issues: #63
  • Loading branch information
OrKoN committed Mar 23, 2022
1 parent 86034e5 commit 4693f7d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/api/interfaces/Schema.KeyDownStep.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ___

### key

**key**: `Key`
**key**: [`Key`](../modules/Schema.md#key)

#### Defined in

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/Schema.KeyUpStep.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ___

### key

**key**: `Key`
**key**: [`Key`](../modules/Schema.md#key)

#### Defined in

Expand Down
11 changes: 11 additions & 0 deletions docs/api/modules/Schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
- [AssertionStep](Schema.md#assertionstep)
- [CustomStep](Schema.md#customstep)
- [FrameSelector](Schema.md#frameselector)
- [Key](Schema.md#key)
- [Pattern](Schema.md#pattern)
- [ScrollStep](Schema.md#scrollstep)
- [Selector](Schema.md#selector)
Expand Down Expand Up @@ -81,6 +82,16 @@ ___

___

### Key

Ƭ **Key**: ``"0"`` \| ``"1"`` \| ``"2"`` \| ``"3"`` \| ``"4"`` \| ``"5"`` \| ``"6"`` \| ``"7"`` \| ``"8"`` \| ``"9"`` \| ``"Power"`` \| ``"Eject"`` \| ``"Abort"`` \| ``"Help"`` \| ``"Backspace"`` \| ``"Tab"`` \| ``"Numpad5"`` \| ``"NumpadEnter"`` \| ``"Enter"`` \| ``"\r"`` \| ``"\n"`` \| ``"ShiftLeft"`` \| ``"ShiftRight"`` \| ``"ControlLeft"`` \| ``"ControlRight"`` \| ``"AltLeft"`` \| ``"AltRight"`` \| ``"Pause"`` \| ``"CapsLock"`` \| ``"Escape"`` \| ``"Convert"`` \| ``"NonConvert"`` \| ``"Space"`` \| ``"Numpad9"`` \| ``"PageUp"`` \| ``"Numpad3"`` \| ``"PageDown"`` \| ``"End"`` \| ``"Numpad1"`` \| ``"Home"`` \| ``"Numpad7"`` \| ``"ArrowLeft"`` \| ``"Numpad4"`` \| ``"Numpad8"`` \| ``"ArrowUp"`` \| ``"ArrowRight"`` \| ``"Numpad6"`` \| ``"Numpad2"`` \| ``"ArrowDown"`` \| ``"Select"`` \| ``"Open"`` \| ``"PrintScreen"`` \| ``"Insert"`` \| ``"Numpad0"`` \| ``"Delete"`` \| ``"NumpadDecimal"`` \| ``"Digit0"`` \| ``"Digit1"`` \| ``"Digit2"`` \| ``"Digit3"`` \| ``"Digit4"`` \| ``"Digit5"`` \| ``"Digit6"`` \| ``"Digit7"`` \| ``"Digit8"`` \| ``"Digit9"`` \| ``"KeyA"`` \| ``"KeyB"`` \| ``"KeyC"`` \| ``"KeyD"`` \| ``"KeyE"`` \| ``"KeyF"`` \| ``"KeyG"`` \| ``"KeyH"`` \| ``"KeyI"`` \| ``"KeyJ"`` \| ``"KeyK"`` \| ``"KeyL"`` \| ``"KeyM"`` \| ``"KeyN"`` \| ``"KeyO"`` \| ``"KeyP"`` \| ``"KeyQ"`` \| ``"KeyR"`` \| ``"KeyS"`` \| ``"KeyT"`` \| ``"KeyU"`` \| ``"KeyV"`` \| ``"KeyW"`` \| ``"KeyX"`` \| ``"KeyY"`` \| ``"KeyZ"`` \| ``"MetaLeft"`` \| ``"MetaRight"`` \| ``"ContextMenu"`` \| ``"NumpadMultiply"`` \| ``"NumpadAdd"`` \| ``"NumpadSubtract"`` \| ``"NumpadDivide"`` \| ``"F1"`` \| ``"F2"`` \| ``"F3"`` \| ``"F4"`` \| ``"F5"`` \| ``"F6"`` \| ``"F7"`` \| ``"F8"`` \| ``"F9"`` \| ``"F10"`` \| ``"F11"`` \| ``"F12"`` \| ``"F13"`` \| ``"F14"`` \| ``"F15"`` \| ``"F16"`` \| ``"F17"`` \| ``"F18"`` \| ``"F19"`` \| ``"F20"`` \| ``"F21"`` \| ``"F22"`` \| ``"F23"`` \| ``"F24"`` \| ``"NumLock"`` \| ``"ScrollLock"`` \| ``"AudioVolumeMute"`` \| ``"AudioVolumeDown"`` \| ``"AudioVolumeUp"`` \| ``"MediaTrackNext"`` \| ``"MediaTrackPrevious"`` \| ``"MediaStop"`` \| ``"MediaPlayPause"`` \| ``"Semicolon"`` \| ``"Equal"`` \| ``"NumpadEqual"`` \| ``"Comma"`` \| ``"Minus"`` \| ``"Period"`` \| ``"Slash"`` \| ``"Backquote"`` \| ``"BracketLeft"`` \| ``"Backslash"`` \| ``"BracketRight"`` \| ``"Quote"`` \| ``"AltGraph"`` \| ``"Props"`` \| ``"Cancel"`` \| ``"Clear"`` \| ``"Shift"`` \| ``"Control"`` \| ``"Alt"`` \| ``"Accept"`` \| ``"ModeChange"`` \| ``" "`` \| ``"Print"`` \| ``"Execute"`` \| ``"\u0000"`` \| ``"a"`` \| ``"b"`` \| ``"c"`` \| ``"d"`` \| ``"e"`` \| ``"f"`` \| ``"g"`` \| ``"h"`` \| ``"i"`` \| ``"j"`` \| ``"k"`` \| ``"l"`` \| ``"m"`` \| ``"n"`` \| ``"o"`` \| ``"p"`` \| ``"q"`` \| ``"r"`` \| ``"s"`` \| ``"t"`` \| ``"u"`` \| ``"v"`` \| ``"w"`` \| ``"x"`` \| ``"y"`` \| ``"z"`` \| ``"Meta"`` \| ``"*"`` \| ``"+"`` \| ``"-"`` \| ``"/"`` \| ``";"`` \| ``"="`` \| ``","`` \| ``"."`` \| ``"`"`` \| ``"["`` \| ``"\\"`` \| ``"]"`` \| ``"'"`` \| ``"Attn"`` \| ``"CrSel"`` \| ``"ExSel"`` \| ``"EraseEof"`` \| ``"Play"`` \| ``"ZoomOut"`` \| ``")"`` \| ``"!"`` \| ``"@"`` \| ``"#"`` \| ``"$"`` \| ``"%"`` \| ``"^"`` \| ``"&"`` \| ``"("`` \| ``"A"`` \| ``"B"`` \| ``"C"`` \| ``"D"`` \| ``"E"`` \| ``"F"`` \| ``"G"`` \| ``"H"`` \| ``"I"`` \| ``"J"`` \| ``"K"`` \| ``"L"`` \| ``"M"`` \| ``"N"`` \| ``"O"`` \| ``"P"`` \| ``"Q"`` \| ``"R"`` \| ``"S"`` \| ``"T"`` \| ``"U"`` \| ``"V"`` \| ``"W"`` \| ``"X"`` \| ``"Y"`` \| ``"Z"`` \| ``":"`` \| ``"<"`` \| ``"_"`` \| ``">"`` \| ``"?"`` \| ``"~"`` \| ``"{"`` \| ``"|"`` \| ``"}"`` \| ``"\""`` \| ``"SoftLeft"`` \| ``"SoftRight"`` \| ``"Camera"`` \| ``"Call"`` \| ``"EndCall"`` \| ``"VolumeDown"`` \| ``"VolumeUp"``

#### Defined in

[Schema.ts:215](https://github.com/puppeteer/replay/blob/main/src/Schema.ts#L215)

___

### Pattern

Ƭ **Pattern**: `string`
Expand Down
3 changes: 0 additions & 3 deletions src/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@ export interface UserFlow {
steps: Step[];
}

/**
* @internal
*/
export type Key =
| '0'
| '1'
Expand Down

0 comments on commit 4693f7d

Please sign in to comment.