opened
namirsab
username_0
### Observerd behaviour
Given this code:
```js
definitions({
  'my-defs.def1': SecureDef(['right1'], (arg1, arg2) => 1, (arg1, arg2) => fromArg({ arg1 })),
});
```

I have a transform that works in every case when te third argument of `SecureDef` is a function calling other functions, or an identifier, or whatever but **destructuring**.
I get this error:

`undefined does not match field "value": string | boolean | null | number | RegExp of type Literal`

I'm not sure what that means...

### Expected Behaviour
* No error is thrown and the transforms works as it works for these examples:

```js
definitions({
  'my-defs.def1': SecureDef(['right1'], (arg1, arg2) => 1, (arg1, arg2) => fromArg(arg1)),
  'my-defs.def2': SecureDef(['right1'], (arg1) => arg1 + 1, myThirdFunction)
});
```

The transform is converting to something like this:

```js
const def1 = createDef({
   name: 'my-defs.def1',
   security: {
      rights: ['right1'],
      extractor: (arg1, arg2) => fromArg({ arg1 }) // This is what's making it fail
   },
   run: (arg1, arg2) => 1
})
```
Error when using destructured parameters
issue
created
namirsab
username_0
forget it xD it was my transform :smile:
comment
closed
namirsab
username_0
issue