About the interface keyword

The interface keyword defines an interface. An interface is similar to a class, with the following important differences:

The interface keyword is supported only when used in external script files, not in scripts that you write in the Actions panel.