chromium/third_party/blink/renderer/core/trustedtypes/trusted_script_url.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=TrustedScriptURL] USVString ScriptURLString;

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