forked from mystiq/hydrogen-web
func --> Func
This commit is contained in:
parent
0c424cb77f
commit
1beb153f21
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type func = () => void;
|
type Func = () => void;
|
||||||
type Disposable = { dispose: func; [key: string]: any } | func;
|
type Disposable = { dispose: Func; [key: string]: any } | Func;
|
||||||
|
|
||||||
function disposeValue(value: Disposable): void {
|
function disposeValue(value: Disposable): void {
|
||||||
if (typeof value === "function") {
|
if (typeof value === "function") {
|
||||||
|
|
Loading…
Reference in a new issue