Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Shambles-Dev/AutoHotkey-Type_Checking
Type Checking for AutoHotkey
https://github.com/Shambles-Dev/AutoHotkey-Type_Checking
ahk autohotkey type-checking typechecking
Last synced: 2 months ago
JSON representation
Type Checking for AutoHotkey
- Host: GitHub
- URL: https://github.com/Shambles-Dev/AutoHotkey-Type_Checking
- Owner: Shambles-Dev
- License: lgpl-3.0
- Created: 2018-12-11T16:06:28.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T15:23:18.000Z (about 3 years ago)
- Last Synced: 2024-04-23T15:32:35.153Z (9 months ago)
- Topics: ahk, autohotkey, type-checking, typechecking
- Language: AutoHotkey
- Homepage:
- Size: 8.79 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-AutoHotkey - Type_Checking - by Shambles - Type Checking for AutoHotkey - Forum thread: [link](https://www.autohotkey.com/boards/viewtopic.php?f=6&t=59857) (Libraries / <a name="libraries-data-structs-algorithms"></a>Data Structures and Algorithms)
README
Type Checking
=============This is a backport of most of AutoHotkey v2’s type checking features to v1. They are useful for validation and dispatching.
[Design](docs/Design.md) contains the reasons for the design decisions.
## Installation
The files in [src](src) must be placed in a [library directory](https://www.autohotkey.com/docs/Functions.htm#lib).
## Usage
Directly calling a function will cause its library to be auto-included. If the function is only called dynamically or indirectly, its library must be explicitly included.
[`IsInteger(Value)`](docs/IsInteger.md)
[`IsFloat(Value)`](docs/IsFloat.md)
[`IsNumber(Value)`](docs/IsNumber.md)
[`IsString(Value)`](docs/IsString.md)
[`Type(Value)`](docs/Type.md)
[`IsInstance(Value, Class)`](docs/IsInstance.md) is v2’s `is` operator as a function.
[`HasProp(Value, Name)`](docs/HasProp.md)
[`HasMethod(Value, Name)`](docs/HasMethod.md)
Be aware that these functions do not recognize implicitly-defined members, except for `base`, of primitives or user-defined types.