chrome-devtools-frontend
Version:
Chrome DevTools UI
32 lines (24 loc) • 646 B
TypeScript
// Copyright (c) 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// <reference path="./request_idle_callback.d.ts" />
interface CSSStyleSheet {
replaceSync(content: string): void;
}
interface ShadowRoot {
adoptedStyleSheets: CSSStyleSheet[]
}
interface ImportMeta {
url: string;
}
interface Document {
adoptedStyleSheets: CSSStyleSheet[]
}
declare module '*.css.js' {
const styles: CSSStyleSheet;
export default styles;
}
declare module '*.css.legacy.js' {
const styles: {cssContent: string};
export default styles;
}