gitbeaker/src/types.d.ts
2018-10-12 00:22:09 +03:00

26 lines
1.0 KiB
TypeScript

/// <reference path="../node_modules/jest-extended/types/index.d.ts" />
type temporaryAny = any;
type UserIdOptions = { userId?: string };
type UserId = string;
type ResourceType = string; // see if we can narrow the type to string literals
type ResourceId = string; // see if we can narrow the type to string literals
type Resource2Type = string; // see if we can narrow the type to string literals
type Resource2Id = string; // see if we can narrow the type to string literals
type NoteId = string; // see if `| number` is a valid type
type ProjectId = string | number;
type KeyId = string; // see if `| number` is a valid type
type GroupId = string | number;
type GroupAccess = temporaryAny;
/** The duration in human format. e.g: 3h30m */
type Duration = string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: number | string): string;