How to extend custom (non-core) blocks?

I found the solution.

addFilter( 'blocks.registerBlockType ) needs to be called before the call to registerBlockType.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)