0.4.4 • Published 6 months ago

@types/a2hs.js v0.4.4

Weekly downloads
11
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/a2hs.js

Summary

This package contains type definitions for a2hs.js (https://github.com/koddr/a2hs.js/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/a2hs.js.

index.d.ts

// Type definitions for a2hs.js 0.4
// Project: https://github.com/koddr/a2hs.js/
// Definitions by: Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * A useful modern JavaScript solution for adding a progressive
 * web application (PWA) to the home screen of your mobile
 * iOS device.
 */
declare function AddToHomeScreen(settings?: AddToHomeScreen.Settings): void;

declare namespace AddToHomeScreen {
    interface Settings {
        /**
         * Background color for container
         * @default '#f9f9f9'
         */
        backgroundColor?: string | undefined;
        /**
         * Padding for container
         * @default '10px'
         */
        padding?: string | undefined;
        /**
         * Shadow color for top of container
         * @default '#e9e9e9'
         */
        shadowColor?: string | undefined;
        /**
         * Shadow size for top of container
         * @default '10px'
         */
        shadowSize?: string | undefined;
        /**
         * Font family for content in container
         * @default '-apple-system, sans-serif'
         */
        fontFamily?: string | undefined;
        /**
         * Font color for content in container
         * @default '#5d5d5d'
         */
        color?: string | undefined;
        /**
         * Font size for content in container
         * @default '0.9rem'
         */
        fontSize?: string | undefined;
        /**
         * Brand for default `htmlContent`
         * @default ''
         */
        brandName?: string | undefined;
        /**
         * Logo for container
         */
        logoImage?: string | undefined;
        /**
         * Content for container with HTML
         */
        htmlContent?: string | undefined;
    }
}
export = AddToHomeScreen;

Additional Details

  • Last updated: Wed, 07 Jul 2021 21:43:59 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Piotr Błażejewicz.

0.4.4

6 months ago

0.4.3

7 months ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

4 years ago