All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ducks.pages.PageResolver.ts Maven / Gradle / Ivy

The newest version!
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
class PageResolver {
    /**
     * Значение поумолчанию
     * @return {{
     *  metadata: {},
     *  disabled: boolean,
     *  loading: boolean,
     *  error: boolean,
     *  status: null
     * }}
     */
    static get defaultState() {
        return ({
            metadata: {},
            loading: false,
            error: false,
            disabled: false,
            status: null,
            pageUrl: null,
        })
    }
}

export default PageResolver




© 2015 - 2024 Weber Informatics LLC | Privacy Policy