source: trip-planner-front/node_modules/critters/src/index.d.ts@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * Copyright 2018 Google LLC
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 */
16
17declare module 'critters' {
18 export interface Options {
19 path?: string;
20 publicPath?: string;
21 external?: boolean;
22 inlineThreshold?: number;
23 minimumExternalSize?: number;
24 pruneSource?: boolean;
25 mergeStylesheets?: boolean;
26 additionalStylesheets?: string[];
27 preload?: 'body' | 'media' | 'swap' | 'js' | 'js-lazy';
28 noscriptFallback?: boolean;
29 inlineFonts?: boolean;
30 preloadFonts?: boolean;
31 fonts?: boolean;
32 keyframes?: string;
33 compress?: boolean;
34 logLevel?: 'info' | 'warn' | 'error' | 'trace' | 'debug' | 'silent';
35 reduceInlineStyles?: boolean;
36 logger?: Logger;
37 }
38
39 export interface Logger {
40 trace?: (message: string) => void;
41 debug?: (message: string) => void;
42 info?: (message: string) => void;
43 warn?: (message: string) => void;
44 error?: (message: string) => void;
45 }
46
47 class Critters {
48 constructor(options: Options);
49 process(html: string): Promise<string>;
50 }
51
52 export default Critters;
53}
Note: See TracBrowser for help on using the repository browser.