UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

13 lines 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultDatepickerFunction = void 0; const defaultDatepickerFunction = (type) => `(date: Date): boolean => { /* The function takes in a Date object, and should return a boolean value. * If the function returns true, the date will be ${type}d. * Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6 * The function below would ${type} every sunday and saturday. */ // return (date.getDay() === 0 || date.getDay() === 6) }`; exports.defaultDatepickerFunction = defaultDatepickerFunction; //# sourceMappingURL=defaultDatepickerFunction.js.map