FIX: onDelete and onCancel are mandatory properties
In general optional arguments are a bad idea, because you loose the type and all it's benefits. Did you forget an argument or you didn't need it?
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
ddc785e7a6
commit
99d42cb1e2
@@ -18,8 +18,8 @@ interface NamedRangeProperties {
|
||||
scope?: number;
|
||||
formula: string;
|
||||
onSave: () => void;
|
||||
onDelete?: () => void;
|
||||
onCancel?: () => void;
|
||||
onDelete: () => void;
|
||||
onCancel: () => void;
|
||||
}
|
||||
|
||||
function NamedRangeActive(properties: NamedRangeProperties) {
|
||||
|
||||
Reference in New Issue
Block a user