Skip to content

Commit e52b25a

Browse files
authored
🤖 Merge PR DefinitelyTyped#72951 reveal.js: add controls:"speaker-only" type by @jdeniau
1 parent 321d555 commit e52b25a

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

‎types/reveal.js/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ declare namespace Reveal {
831831
*
832832
* @defaultValue `true`
833833
*/
834-
controls?: boolean;
834+
controls?: boolean | "speaker-only";
835835

836836
/**
837837
* Help the user learn the controls by providing hints, for example by

‎types/reveal.js/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/reveal.js",
4-
"version": "5.0.9999",
4+
"version": "5.2.9999",
55
"projects": [
66
"https://github.com/hakimel/reveal.js/"
77
],

‎types/reveal.js/reveal.js-tests.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ deck.configure({ slideNumber: true, width: 20, height: 20 });
493493

494494
deck.configure({ view: "scroll" });
495495

496+
deck.configure({ controls: true });
497+
deck.configure({ controls: false });
498+
deck.configure({ controls: "speaker-only" });
499+
// @ts-expect-error
500+
deck.configure({ controls: "foo" });
501+
496502
// -------------- //
497503
// destroy method //
498504
// -------------- //

0 commit comments

Comments
 (0)