document-has-type

If the document has the given type.

{
    "evaluator": "document-has-type",
    "condition": "{type}"
}

Example

This block, taken from the Configuration docs, adds a custom-copy-text-to-clipboard document action. It is included if the document is of type my:article, whether that document is a file or a folder.

{
    "evaluator": "document-has-type",
    "condition": "my:article",
    "config": {
        "document-actions": [{
            "id": "custom-copy-text-to-clipboard"
        }]
    }
}

See also