1.0.9 • Published 3 months ago

zendesk-types v1.0.9

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

What is it?

This is unofficial Zendesk API typings, that is scrambled from the documentation + tested during the development. GitHub Repository -- https://github.com/OlegGulevskyy/zendesk-types

Why?

Having this types included in your project allows you to interact with ZafClient (Zendesk's JS client) in a type safe manner.

Type X is missing

This is a work in progress, and I have no intentions spending a full day scraping the documentation yet. If you notice a missing type, please raise an issue / PR with the addition. I am adding types "on the go", as soon as I notice something is missing during my own development cycle. My aim, however, is to make it complete types package, so eventually I will get there.

How do I include this in my project?

Simple install the package from npm, using any package installer of your choice (pnpm, npm etc):

  • npm install --save-dev zendesk-types
  • Include the installed types in your tsconfig.json, for example:
{
	"compilerOptions": {
		"target": "es5",
		"lib": [
			"dom",
			"dom.iterable",
			"esnext"
		],
		"allowJs": true,
		"skipLibCheck": true,
		"strict": true,
		"forceConsistentCasingInFileNames": true,
		"noEmit": true,
		"esModuleInterop": true,
		"module": "esnext",
		"moduleResolution": "node",
		"resolveJsonModule": true,
		"isolatedModules": true,
		"jsx": "preserve",
		"incremental": true
	},
	"include": [
		"next-env.d.ts",
		"**/*.ts",
		"**/*.tsx",
		"../../node_modules/zendesk-types/**/*.d.ts" // path to the package dir
	],
	"exclude": [
		"node_modules"
	]
}

The reason it has to be included manually in the tsconfig.json, is because it does not distrubute under any organisation, so was not included into DefinitelyTyped repository.

Any PR / help is welcome! https://github.com/OlegGulevskyy/zendesk-types

1.0.9

3 months ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago