Files
DefinitelyTyped/types/k6/encoding.d.ts
bookmoons 7d19fc7272 [k6] Update for latest version (#36432)
* k6: Add author

* k6: Normalize indenting

Indenting was inconsistent.
Normalizes to the recommended 4 spaces.

* k6: Use TypeScript 3.4

* k6: Document version 1.0

* k6: Update project address

* k6: Normalize formatting

Uses the repo formatter to normalize code format.

* k6: Define byte array

* k6: Document init context availability

* k6: Document fail never returns

* k6: Collapse function definitions

For consistency with the example package.

* k6: Aggregate functions

* k6: Alphabetize files

* k6: Factor init context

* k6: Remove dom depend

The DOM is not present in the k6 custom runtime environment.

* k6: Simplify manifest

* k6: Rename init global

* k6: Add factored global tests

* k6: Define console

* k6: Remove global import

Seems to be loaded implicitly.

* k6: Define __VU

* k6: Define __ITER

* k6: Define __ENV

* k6: Test excess open args

* k6: Correct version

The version mentioned in the k6 docs seems to be wrong.
The latest version in the repo is v0.24.0.

* k6: Add factored check tests

* k6: Factor checker routine

* k6: Add factored fail tests

* k6: Add factored group tests

* k6: Add factored sleep tests

* k6: Define encoding

* k6/crypto: Support all string encodings

* k6/crypto: Define hmac

* k6/crypto: Define md4

* k6/crypto: Define md5

* k6/crypto: Define sha1

* k6/crypto: Define sha256

* k6/crypto: Define sha384

* k6/crypto: Define sha512

* k6/crypto: Define sha512_224

* k6/crypto: Define sha512_256

* k6/crypto: Define ripemd160

* k6/crypto: Aggregate types

* k6/crypto: Define createHash

* k6/crypto: Define Hasher

* k6/crypto: Define randomBytes

* k6/crypto: Order types to bottom

* k6/http: Define cookieJar

* k6/http: Define CookieJar.set

* k6/http: Define CookieJar.cookiesForURL

* k6/encoding: Order types to bottom

* k6/http: Brand CookieJar

* k6: Order types to bottom

* k6/crypto: Brand Hasher

* k6: Document branding

* k6/http: Define get

* k6/http: Define Response

* k6/http: Factor body type refinement

Enables typing user variables with nongenerics.

* k6/http: Define Response.json

* k6/http: Define Response.clickLink

* k6/http: Correct Response.clickLink header

* k6/http: Define Response.submitForm

* k6/http: Support null params

* k6/http: Centralize example address

* k6/http: Define post

* k6/http: Define del

* k6/http: Define options

* k6/http: Document generics purpose

* k6/http: Define patch

* k6/http: Refine comment

* k6/http: Define put

* k6/http: Correct body refinement

* k6/http: Simplify comment

* k6/http: Define request

* k6/http: Define batch

* k6/http: Define file

* k6: Remove centralized tests

Replaced with factored tests.

* k6: Use protected branding

Enables branding class hierarchies.

* k6/http: Update formatting

* k6/metrics: Define Counter

* k6/metrics: Define Gauge

* k6/metrics: Define Rate

* k6/metrics: Define Trend

* k6: Make noninstantiable classes abstract

* k6/ws: Define connect

* k6/http: Prefer interfaces

* k6/ws: Define Socket.on

* k6/ws: Define Socket.send

* k6/ws: Define Socket.ping

* k6/ws: Define Socket.close

* k6/ws: Define Socket.setTimeout

* k6/ws: Define Socket.setInterval

* k6/html: Define parseHTML

* k6/html: Specify optional return types

* k6/html: Define Element

* k6/html: Define HrefElement

* k6/html: Define MediaElement

* k6/html: Define FormElement

* k6/html: Define LabelElement

* k6/html: Define FormFieldElement

* k6/html: Define TableSectionElement

* k6/html: Define TableCellElement

* k6/html: Define CanvasElement

* k6/html: Define OptionElement

* k6/html: Define DataListElement

* k6/html: Define FieldSetElement

* k6/html: Define InputElement

* k6/html: Define KeygenElement

* k6/html: Define LegendElement

* k6/html: Define LinkElement

* k6/html: Define MapElement

* k6/html: Define MeterElement

* k6/html: Define ObjectElement

* k6/html: Define OutputElement

* k6/html: Define ProgressElement

* k6/html: Define ScriptElement

* k6/html: Define SelectElement

* k6/html: Define StyleElement

* k6/html: Define TableElement

* k6/html: Define TableRowElement

* k6/html: Define TableColElement

* k6/html: Define TextAreaElement

* k6/html: Define TitleElement

* k6/html: Define leaf elements

* k6: Define options

* k6: Type global environment from index
2019-06-26 09:40:45 -07:00

5 lines
218 B
TypeScript

export function b64decode(input: string, encoding?: Base64Variant): string;
export function b64encode(input: string, encoding?: Base64Variant): string;
export type Base64Variant = 'std' | 'rawstd' | 'url' | 'rawurl';