Skip to content

Instantly share code, notes, and snippets.

@haysclark
haysclark / close.io.d.ts
Last active January 17, 2023 23:55
Typescript types for Close.io - WIP
declare module "close.io" {
interface DataResult<T> {
has_more: boolean
total_results: number
data: T[]
}
interface PhoneResult extends Record<string, any> {
type: string // "office"
phone_formatted: string // "+1 800-444-5555"
@haysclark
haysclark / ExtendScript.d.ts
Last active January 9, 2024 04:15
Illustrator 26.0.3 TypeScript types for use with Adobe CEP and ExtendScript (WIP)
// Type declarations for ExtendScript Built-in types
// Initial declarations by: Eric Robinson <eric@sonicbloom.io>
/**
* The base class of all JavaScript objects.
*/
interface Object {
/**
* Points to the constructor function that created this object.
* Note that this property is treated as an XML element in the XML class.