From 484ea9b4fb3e107aa07d9682778b09e46dccb911 Mon Sep 17 00:00:00 2001 From: Maritaria Date: Wed, 3 Nov 2021 19:54:40 +0100 Subject: [PATCH] Default the keys for dynamic variable binding to the set of keys on the target type By doing this users can specify the type they are using for props, context, this. But without the need to explicitly specify the key-set when they do so. --- regl.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regl.d.ts b/regl.d.ts index 64925c85..24360261 100755 --- a/regl.d.ts +++ b/regl.d.ts @@ -136,11 +136,11 @@ declare namespace REGL { */ /* Retrieve the property `name` passed when the draw command is executed. */ - prop(name: Key): DynamicVariable; + prop(name: Key): DynamicVariable; /* Retrieve the context property `name` when the draw command is executed. */ - context(name: K): DynamicVariable; + context(name: K): DynamicVariable; /* Retrieve the property `name` of the object in whose context the draw command is executing. */ - this(name: Key): DynamicVariable; + this(name: Key): DynamicVariable; /* Drawing */