From 1ccd3853b033e6578d8b5cec6afd3b97c2fed211 Mon Sep 17 00:00:00 2001 From: Aidas Patas Date: Mon, 15 Mar 2021 21:48:56 +0200 Subject: [PATCH] forgot typing stub --- cli/stubs/typings.stub | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/cli/stubs/typings.stub b/cli/stubs/typings.stub index 1161f97..d6351ed 100644 --- a/cli/stubs/typings.stub +++ b/cli/stubs/typings.stub @@ -1,24 +1,27 @@ -type UPROPERTYParam = null; -type UFUNCTIONParam = null; -type KEYBINDParam = 0 | 1; +/* UPROPERTY types */ +declare const EditAnywhere; +declare const VisibleAnywhere; -declare const EditAnywhere: UPROPERTYParam; -declare const VisibleAnywhere: UPROPERTYParam; +/* UCLASS types */ +declare const BlueprintComponent; -declare const BindAxis: KEYBINDParam = 0; -declare const BindAction: KEYBINDParam = 1; -declare const IE_PRESSED: KEYBINDParam = 0; -declare const IE_RELEASED: KEYBINDParam = 1; +/* KEYBIND types */ +declare const BindAxis; +declare const BindAction; +declare const IE_PRESSED; +declare const IE_RELEASED; -declare const Server: UFUNCTIONParam; -declare const Client: UFUNCTIONParam; -declare const Reliable: UFUNCTIONParam; -declare const Unreliable: UFUNCTIONParam; -declare const NetMulticast: UFUNCTIONParam; +/* UFUNCTION types */ +declare const Server; +declare const Client; +declare const Reliable; +declare const Unreliable; +declare const NetMulticast; + +/* DECORATOR types */ +declare const UCLASS = (...args: null[]): Function => (): void => {}; +declare const UPROPERTY = (...args: null[]): Function => (): void => {}; +declare const UFUNCTION = (...args: null[]): Function => (): void => {}; +declare const KEYBIND = (type: null, action: string, event?: null): Function => (): void => {}; -declare const UCLASS = (): Function => (): void => {}; -declare const UPROPERTY = (...args: UPROPERTYParam[]): Function => (): void => {}; -declare const UFUNCTION = (...args: UFUNCTIONParam[]): Function => (): void => {}; -declare const KEYBIND = (type: KEYBINDParam, action: string, event: ?KEYBINDParam = 0): Function => (): void => {}; -declare type float = number;