API Reference > imodeljs-common > RpcInterface > RpcOperation > RpcOperation.setDefaultPolicy RpcOperation.setDefaultPolicy Function Decorator for setting the default policy for an RPC interface definition class. setDefaultPolicy(policy: RpcOperationPolicy | Partial<RpcOperationPolicy>): (definition: RpcInterfaceDefinition<T>) => void Parameter Type Description policy RpcOperationPolicy | Partial<RpcOperationPolicy> Returns - (definition: RpcInterfaceDefinition<T>) => void Defined in core/common/src/rpc/core/RpcOperation.ts Line 152 Last Updated: 12 June, 2024