chromium/third_party/blink/renderer/core/trustedtypes/trusted_html.idl

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://github.com/w3c/trusted-types

typedef [StringContext=TrustedHTML] DOMString HTMLString;

[
    Exposed=(Window, Worker)
] interface TrustedHTML {
    stringifier;
    DOMString toJSON();
    [RaisesException, CallWith=ScriptState, RuntimeEnabled=TrustedTypesFromLiteral]
 static TrustedHTML fromLiteral(any templateLiteral);
};