mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
26 lines
1.0 KiB
TypeScript
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;
|