Interacting With Livewire From Alpine

my code:
in my livewire file:
public $type = ‘this is my type’;

{{$type}} // works: this is my type

//didnt work

its didnt work i get

$wire is not defined

alpine 2.7
livewire 2 (i was use v1 but after update to 2 still didnt work)

when i try to use
$wire.type

its didnt work

What exactly want to do here?

cause your question is not clear enough and of course there is no $wire variable here

if you want to use Livewire attribute use wire:your-evet
if you want to use alpineJs attribute use x-your-event

i found the solution

alpine has been loaded before livewire. (in layout page)