UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

1 lines 565 B
Object.defineProperty(exports,"__esModule",{value:!0});let APIFunction_1=require("../../classes/structures/APIFunction");class DecodeURI extends APIFunction_1.APIFunction{name="$decodeURI";description="Decodes a string to URL format.";parameters=[{name:"Text",description:"The text to be decoded.",type:APIFunction_1.ParamType.String,required:!0,rest:!1,defaultValue:null}];usage="$decodeURI[text]";returns=APIFunction_1.ParamType.String;aliases=["$decodeURIComponent"];compile=!0;async run(e,[t]){return decodeURIComponent(t).toString()}}exports.default=DecodeURI;