0.0.6 • Published 4 months ago

@gravitywiz/types v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

🧙‍♂️ Hi! Welcome to Gravity Wiz's Typescript Definitions.

Herein find TypeScript definitions for Gravity Forms, Perks crafted by Gravity Wiz and other Gravity Forms plugins.

💾 Installation

yarn add -D @gravitywiz/types

or...

npm install --save-dev @gravitywiz/types

🚀 Usage

tsconfig.json

To make ambient types automatically available, you can add @gravitywiz to the TypeScript typeRoots like so:

(By default, node_modules/@types is included in typeRoots and it's recommended to keep it.)

{
	"compilerOptions": {
		"typeRoots": [
			"node_modules/@types",
			"node_modules/@gravitywiz"
		]
	}
}

/// <reference path="..." />

To use the ambient module definitions without modifying tsconfig.json, you can load in the types using /// <reference path="..." />.

(Make sure to the path is correct for your setup.)

/// <reference path="../../../node_modules/@gravitywiz/types/index.d.ts" />
0.0.6

4 months ago

0.0.5

5 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago